Fixed some consistency issues in the documentation (#1274)
* fixed invalid json examples * correct type: integer for a count, not number * correct type: array of string, not string * add square brackets around entity return type * added missing path parameter definition * spacing fix * PR comment: add link
This commit is contained in:
parent
1d15e379a4
commit
e4e88f0fb7
|
@ -77,7 +77,7 @@ Daily retention data for the week between 2022-09-08 and 2022-09-14, given that
|
|||
"value": "1"
|
||||
}
|
||||
]
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
## Attributes
|
||||
|
|
|
@ -165,7 +165,7 @@ Show dimensional data about how much space is used by each software in your serv
|
|||
"human_value": "0 Bytes"
|
||||
}
|
||||
]
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
### `software_versions` {#software_versions}
|
||||
|
|
|
@ -50,7 +50,7 @@ aliases: [
|
|||
### `statuses_count` {#statuses_count}
|
||||
|
||||
**Description:** The number of authored statuses containing this hashtag.\
|
||||
**Type:** Number\
|
||||
**Type:** Integer\
|
||||
**Version history:**\
|
||||
3.0.0 - added
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ aliases: [
|
|||
### `status_matches` {#status_matches}
|
||||
|
||||
**Description:** The status ID within the filter that was matched.\
|
||||
**Type:** {{<nullable>}} String, or null\
|
||||
**Type:** {{<nullable>}} Array of String, or null\
|
||||
**Version history:**\
|
||||
4.0.0 - added
|
||||
|
||||
|
|
|
@ -19,18 +19,20 @@ aliases: [
|
|||
## Example
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "bongoCat",
|
||||
"count": 9,
|
||||
"me": false,
|
||||
"url": "https://files.mastodon.social/custom_emojis/images/000/067/715/original/fdba57dff7576d53.png",
|
||||
"static_url": "https://files.mastodon.social/custom_emojis/images/000/067/715/static/fdba57dff7576d53.png"
|
||||
},
|
||||
{
|
||||
"name": "🤔",
|
||||
"count": 1,
|
||||
"me": true
|
||||
}
|
||||
[
|
||||
{
|
||||
"name": "bongoCat",
|
||||
"count": 9,
|
||||
"me": false,
|
||||
"url": "https://files.mastodon.social/custom_emojis/images/000/067/715/original/fdba57dff7576d53.png",
|
||||
"static_url": "https://files.mastodon.social/custom_emojis/images/000/067/715/static/fdba57dff7576d53.png"
|
||||
},
|
||||
{
|
||||
"name": "🤔",
|
||||
"count": 1,
|
||||
"me": true
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
## Attributes
|
||||
|
|
|
@ -21,7 +21,7 @@ aliases: [
|
|||
"color": "#ff3838",
|
||||
"permissions": 1048575,
|
||||
"highlighted": true
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
## Attributes
|
||||
|
|
|
@ -78,7 +78,7 @@ aliases: [
|
|||
### `account` {#account}
|
||||
|
||||
**Description:** The account that published this revision.\
|
||||
**Type:** Account\
|
||||
**Type:** [Account]({{<relref "entities/Account">}})\
|
||||
**Version history:**\
|
||||
3.5.0 - added
|
||||
|
||||
|
|
|
@ -94,6 +94,11 @@ GET /api/v1/admin/canonical_email_blocks/:id HTTP/1.1
|
|||
|
||||
#### Request
|
||||
|
||||
##### Path parameters
|
||||
|
||||
:id
|
||||
: {{<required>}} String. The ID of the Admin::CanonicalEmailBlock in the database.
|
||||
|
||||
##### Headers
|
||||
|
||||
Authorization
|
||||
|
@ -262,6 +267,11 @@ DELETE /api/v1/admin/canonical_email_blocks/:id HTTP/1.1
|
|||
|
||||
#### Request
|
||||
|
||||
##### Path parameters
|
||||
|
||||
:id
|
||||
: {{<required>}} String. The ID of the Admin::CanonicalEmailBlock in the database.
|
||||
|
||||
##### Headers
|
||||
|
||||
Authorization
|
||||
|
|
Loading…
Reference in New Issue