Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,14 @@
"minimumMastodonVersion": "4.2.0",
"blockedFiles": ["methods/notifications_alpha.md"],
"overridesRepository": "https://github.com/abraham/documentation",
"overrideCommits": ["b1d8f95b506e2d734876ef47ec0f4e1feb4f5618"]
"overrideCommits": [
"4590b4302eb9ab4124c7e3670aa8cbe69f03f3e4",
"3b54807103bfa3936029fbb1d17a1fde9f054494",
"0b3f4dfe8e5c404ec83bd22b2ecc52c88e058129",
"b1d8f95b506e2d734876ef47ec0f4e1feb4f5618",
"c6b60e2470226fd7bae1fcfebd4a372775f83419",
"cb223aa9f88db46557ee5722f347055a69e0b3df",
"ed347a1958f584f2a891e15521cffe7aff754a62",
"b7a315c559cb457723c726c1b49f07c35f2bd8a9"
]
}
218 changes: 4 additions & 214 deletions dist/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10643,7 +10643,7 @@
]
}
},
"/api/v2/filters/keywords/{id}": {

Check warning on line 10646 in dist/schema.json

View workflow job for this annotation

GitHub Actions / test

no-ambiguous-paths

Paths should resolve unambiguously. Found two ambiguous paths: `/api/v2/filters/{filter_id}/keywords` and `/api/v2/filters/keywords/{id}`.
"get": {
"operationId": "getFiltersKeywordsByIdV2",
"summary": "View a single keyword",
Expand Down Expand Up @@ -11095,7 +11095,7 @@
]
}
},
"/api/v2/filters/statuses/{id}": {

Check warning on line 11098 in dist/schema.json

View workflow job for this annotation

GitHub Actions / test

no-ambiguous-paths

Paths should resolve unambiguously. Found two ambiguous paths: `/api/v2/filters/{filter_id}/keywords` and `/api/v2/filters/statuses/{id}`.
"get": {
"operationId": "getFiltersStatusesByIdV2",
"summary": "View a single status filter",
Expand Down Expand Up @@ -22327,9 +22327,6 @@
},
"getSource": {
"$ref": "#/components/links/getStatusSourceById"
},
"getCard": {
"$ref": "#/components/links/getStatusCardById"
}
}
},
Expand Down Expand Up @@ -23237,9 +23234,6 @@
},
"getSource": {
"$ref": "#/components/links/getStatusSourceById"
},
"getCard": {
"$ref": "#/components/links/getStatusCardById"
}
}
},
Expand Down Expand Up @@ -23346,155 +23340,6 @@
]
}
},
"/api/v1/statuses/{id}/card": {
"get": {
"operationId": "getStatusCard",
"summary": "Fetch preview card",
"description": "Version history:\n\n0.0.0 - added\\\n2.6.0 - deprecated in favor of card property inlined on Status entity\\\n3.0.0 - removed",
"tags": [
"statuses"
],
"responses": {
"200": {
"description": "[PreviewCard]",
"headers": {
"X-RateLimit-Limit": {
"description": "Number of requests permitted per time period",
"schema": {
"type": "integer"
}
},
"X-RateLimit-Remaining": {
"description": "Number of requests you can still make",
"schema": {
"type": "integer"
}
},
"X-RateLimit-Reset": {
"description": "Timestamp when your rate limit will reset",
"schema": {
"type": "string",
"format": "date-time"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PreviewCard"
},
"examples": {
"PreviewCard200Example": {
"$ref": "#/components/examples/PreviewCard200Example"
}
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
},
"examples": {
"Error401Example": {
"$ref": "#/components/examples/Error401Example"
}
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
},
"examples": {
"Error404Example": {
"$ref": "#/components/examples/Error404Example"
}
}
}
}
},
"410": {
"description": "Gone"
},
"422": {
"description": "Unprocessable Content",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ValidationError"
},
"examples": {
"ValidationError422Example": {
"$ref": "#/components/examples/ValidationError422Example"
}
}
}
}
},
"429": {
"description": "Too Many Requests",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
},
"examples": {
"Error429Example": {
"$ref": "#/components/examples/Error429Example"
}
}
}
}
},
"503": {
"description": "Unavailable",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
},
"examples": {
"Error503Example": {
"$ref": "#/components/examples/Error503Example"
}
}
}
}
}
},
"externalDocs": {
"url": "https://docs.joinmastodon.org/methods/statuses/#card",
"description": "Official Mastodon API documentation"
},
"deprecated": true,
"security": [
{
"OAuth2": [
"read:statuses"
]
}
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"description": "id parameter",
"schema": {
"type": "string"
}
}
]
}
},
"/api/v1/statuses/{id}/context": {
"get": {
"operationId": "getStatusContext",
Expand Down Expand Up @@ -23750,9 +23595,6 @@
},
"getSource": {
"$ref": "#/components/links/getStatusSourceById"
},
"getCard": {
"$ref": "#/components/links/getStatusCardById"
}
}
},
Expand Down Expand Up @@ -24467,9 +24309,6 @@
},
"getSource": {
"$ref": "#/components/links/getStatusSourceById"
},
"getCard": {
"$ref": "#/components/links/getStatusCardById"
}
}
},
Expand Down Expand Up @@ -24683,9 +24522,6 @@
},
"getSource": {
"$ref": "#/components/links/getStatusSourceById"
},
"getCard": {
"$ref": "#/components/links/getStatusCardById"
}
}
},
Expand Down Expand Up @@ -25084,9 +24920,6 @@
},
"getSource": {
"$ref": "#/components/links/getStatusSourceById"
},
"getCard": {
"$ref": "#/components/links/getStatusCardById"
}
}
},
Expand Down Expand Up @@ -25324,9 +25157,6 @@
},
"getSource": {
"$ref": "#/components/links/getStatusSourceById"
},
"getCard": {
"$ref": "#/components/links/getStatusCardById"
}
}
},
Expand Down Expand Up @@ -26057,9 +25887,6 @@
},
"getSource": {
"$ref": "#/components/links/getStatusSourceById"
},
"getCard": {
"$ref": "#/components/links/getStatusCardById"
}
}
},
Expand Down Expand Up @@ -26273,9 +26100,6 @@
},
"getSource": {
"$ref": "#/components/links/getStatusSourceById"
},
"getCard": {
"$ref": "#/components/links/getStatusCardById"
}
}
},
Expand Down Expand Up @@ -26489,9 +26313,6 @@
},
"getSource": {
"$ref": "#/components/links/getStatusSourceById"
},
"getCard": {
"$ref": "#/components/links/getStatusCardById"
}
}
},
Expand Down Expand Up @@ -26705,9 +26526,6 @@
},
"getSource": {
"$ref": "#/components/links/getStatusSourceById"
},
"getCard": {
"$ref": "#/components/links/getStatusCardById"
}
}
},
Expand Down Expand Up @@ -26921,9 +26739,6 @@
},
"getSource": {
"$ref": "#/components/links/getStatusSourceById"
},
"getCard": {
"$ref": "#/components/links/getStatusCardById"
}
}
},
Expand Down Expand Up @@ -31607,7 +31422,7 @@
]
},
"roles": {
"description": "An array of roles assigned to the user that are publicly visible (highlighted roles only), if the account is local. Will be an empty array if no roles are highlighted or if the account is remote.",
"description": "An array of roles assigned to the user that are publicly visible (highlighted roles only), if the account is local. Will be an empty array if no roles are highlighted or null if the account is remote.",
"type": [
"array",
"null"
Expand Down Expand Up @@ -31965,7 +31780,7 @@
]
},
"roles": {
"description": "An array of roles assigned to the user that are publicly visible (highlighted roles only), if the account is local. Will be an empty array if no roles are highlighted or if the account is remote.",
"description": "An array of roles assigned to the user that are publicly visible (highlighted roles only), if the account is local. Will be an empty array if no roles are highlighted or null if the account is remote.",
"type": [
"array",
"null"
Expand Down Expand Up @@ -32182,7 +31997,7 @@
]
},
"roles": {
"description": "An array of roles assigned to the user that are publicly visible (highlighted roles only), if the account is local. Will be an empty array if no roles are highlighted or if the account is remote.",
"description": "An array of roles assigned to the user that are publicly visible (highlighted roles only), if the account is local. Will be an empty array if no roles are highlighted or null if the account is remote.",
"type": [
"array",
"null"
Expand Down Expand Up @@ -35246,7 +35061,7 @@
"format": "uri"
},
"url": {
"description": "The location of the original full-size attachment.",
"description": "The location of the original full-size attachment. Url may be null if the file is still being processed. See [`POST /api/v2/media`]({{< relref \"methods/media\" >}}#v2).",
"type": [
"string",
"null"
Expand Down Expand Up @@ -40885,24 +40700,6 @@
}
]
},
"PreviewCard200Example": {
"summary": "Example for PreviewCard",
"value": {
"url": "https://www.youtube.com/watch?v=OMv_EPMED8Y",
"title": "♪ Brand New Friend (Christmas Song!)",
"description": "",
"type": "video",
"author_name": "YOGSCAST Lewis & Simon",
"author_url": "https://www.youtube.com/user/BlueXephos",
"provider_name": "YouTube",
"provider_url": "https://www.youtube.com/",
"html": "<iframe width=\"480\" height=\"270\" src=\"https://www.youtube.com/embed/OMv_EPMED8Y?feature=oembed\" frameborder=\"0\" allowfullscreen=\"\"></iframe>",
"width": 480,
"height": 270,
"image": "https://files.mastodon.social/preview_cards/images/014/179/145/original/9cf4b7cf5567b569.jpeg",
"embed_url": ""
}
},
"Context200Example": {
"summary": "Example for Context",
"value": {
Expand Down Expand Up @@ -41352,13 +41149,6 @@
"parameters": {
"id": "$response.body#/id"
}
},
"getStatusCardById": {
"operationId": "getStatusCard",
"description": "Get the status preview card using the response ID",
"parameters": {
"id": "$response.body#/id"
}
}
}
}
Expand Down
Loading