|
22327 | 22327 | }, |
22328 | 22328 | "getSource": { |
22329 | 22329 | "$ref": "#/components/links/getStatusSourceById" |
22330 | | - }, |
22331 | | - "getCard": { |
22332 | | - "$ref": "#/components/links/getStatusCardById" |
22333 | 22330 | } |
22334 | 22331 | } |
22335 | 22332 | }, |
|
23237 | 23234 | }, |
23238 | 23235 | "getSource": { |
23239 | 23236 | "$ref": "#/components/links/getStatusSourceById" |
23240 | | - }, |
23241 | | - "getCard": { |
23242 | | - "$ref": "#/components/links/getStatusCardById" |
23243 | 23237 | } |
23244 | 23238 | } |
23245 | 23239 | }, |
@@ -23346,155 +23340,6 @@ |
23346 | 23340 | ] |
23347 | 23341 | } |
23348 | 23342 | }, |
23349 | | - "/api/v1/statuses/{id}/card": { |
23350 | | - "get": { |
23351 | | - "operationId": "getStatusCard", |
23352 | | - "summary": "Fetch preview card", |
23353 | | - "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", |
23354 | | - "tags": [ |
23355 | | - "statuses" |
23356 | | - ], |
23357 | | - "responses": { |
23358 | | - "200": { |
23359 | | - "description": "[PreviewCard]", |
23360 | | - "headers": { |
23361 | | - "X-RateLimit-Limit": { |
23362 | | - "description": "Number of requests permitted per time period", |
23363 | | - "schema": { |
23364 | | - "type": "integer" |
23365 | | - } |
23366 | | - }, |
23367 | | - "X-RateLimit-Remaining": { |
23368 | | - "description": "Number of requests you can still make", |
23369 | | - "schema": { |
23370 | | - "type": "integer" |
23371 | | - } |
23372 | | - }, |
23373 | | - "X-RateLimit-Reset": { |
23374 | | - "description": "Timestamp when your rate limit will reset", |
23375 | | - "schema": { |
23376 | | - "type": "string", |
23377 | | - "format": "date-time" |
23378 | | - } |
23379 | | - } |
23380 | | - }, |
23381 | | - "content": { |
23382 | | - "application/json": { |
23383 | | - "schema": { |
23384 | | - "$ref": "#/components/schemas/PreviewCard" |
23385 | | - }, |
23386 | | - "examples": { |
23387 | | - "PreviewCard200Example": { |
23388 | | - "$ref": "#/components/examples/PreviewCard200Example" |
23389 | | - } |
23390 | | - } |
23391 | | - } |
23392 | | - } |
23393 | | - }, |
23394 | | - "401": { |
23395 | | - "description": "Unauthorized", |
23396 | | - "content": { |
23397 | | - "application/json": { |
23398 | | - "schema": { |
23399 | | - "$ref": "#/components/schemas/Error" |
23400 | | - }, |
23401 | | - "examples": { |
23402 | | - "Error401Example": { |
23403 | | - "$ref": "#/components/examples/Error401Example" |
23404 | | - } |
23405 | | - } |
23406 | | - } |
23407 | | - } |
23408 | | - }, |
23409 | | - "404": { |
23410 | | - "description": "Not found", |
23411 | | - "content": { |
23412 | | - "application/json": { |
23413 | | - "schema": { |
23414 | | - "$ref": "#/components/schemas/Error" |
23415 | | - }, |
23416 | | - "examples": { |
23417 | | - "Error404Example": { |
23418 | | - "$ref": "#/components/examples/Error404Example" |
23419 | | - } |
23420 | | - } |
23421 | | - } |
23422 | | - } |
23423 | | - }, |
23424 | | - "410": { |
23425 | | - "description": "Gone" |
23426 | | - }, |
23427 | | - "422": { |
23428 | | - "description": "Unprocessable Content", |
23429 | | - "content": { |
23430 | | - "application/json": { |
23431 | | - "schema": { |
23432 | | - "$ref": "#/components/schemas/ValidationError" |
23433 | | - }, |
23434 | | - "examples": { |
23435 | | - "ValidationError422Example": { |
23436 | | - "$ref": "#/components/examples/ValidationError422Example" |
23437 | | - } |
23438 | | - } |
23439 | | - } |
23440 | | - } |
23441 | | - }, |
23442 | | - "429": { |
23443 | | - "description": "Too Many Requests", |
23444 | | - "content": { |
23445 | | - "application/json": { |
23446 | | - "schema": { |
23447 | | - "$ref": "#/components/schemas/Error" |
23448 | | - }, |
23449 | | - "examples": { |
23450 | | - "Error429Example": { |
23451 | | - "$ref": "#/components/examples/Error429Example" |
23452 | | - } |
23453 | | - } |
23454 | | - } |
23455 | | - } |
23456 | | - }, |
23457 | | - "503": { |
23458 | | - "description": "Unavailable", |
23459 | | - "content": { |
23460 | | - "application/json": { |
23461 | | - "schema": { |
23462 | | - "$ref": "#/components/schemas/Error" |
23463 | | - }, |
23464 | | - "examples": { |
23465 | | - "Error503Example": { |
23466 | | - "$ref": "#/components/examples/Error503Example" |
23467 | | - } |
23468 | | - } |
23469 | | - } |
23470 | | - } |
23471 | | - } |
23472 | | - }, |
23473 | | - "externalDocs": { |
23474 | | - "url": "https://docs.joinmastodon.org/methods/statuses/#card", |
23475 | | - "description": "Official Mastodon API documentation" |
23476 | | - }, |
23477 | | - "deprecated": true, |
23478 | | - "security": [ |
23479 | | - { |
23480 | | - "OAuth2": [ |
23481 | | - "read:statuses" |
23482 | | - ] |
23483 | | - } |
23484 | | - ], |
23485 | | - "parameters": [ |
23486 | | - { |
23487 | | - "name": "id", |
23488 | | - "in": "path", |
23489 | | - "required": true, |
23490 | | - "description": "id parameter", |
23491 | | - "schema": { |
23492 | | - "type": "string" |
23493 | | - } |
23494 | | - } |
23495 | | - ] |
23496 | | - } |
23497 | | - }, |
23498 | 23343 | "/api/v1/statuses/{id}/context": { |
23499 | 23344 | "get": { |
23500 | 23345 | "operationId": "getStatusContext", |
|
23750 | 23595 | }, |
23751 | 23596 | "getSource": { |
23752 | 23597 | "$ref": "#/components/links/getStatusSourceById" |
23753 | | - }, |
23754 | | - "getCard": { |
23755 | | - "$ref": "#/components/links/getStatusCardById" |
23756 | 23598 | } |
23757 | 23599 | } |
23758 | 23600 | }, |
|
24467 | 24309 | }, |
24468 | 24310 | "getSource": { |
24469 | 24311 | "$ref": "#/components/links/getStatusSourceById" |
24470 | | - }, |
24471 | | - "getCard": { |
24472 | | - "$ref": "#/components/links/getStatusCardById" |
24473 | 24312 | } |
24474 | 24313 | } |
24475 | 24314 | }, |
|
24683 | 24522 | }, |
24684 | 24523 | "getSource": { |
24685 | 24524 | "$ref": "#/components/links/getStatusSourceById" |
24686 | | - }, |
24687 | | - "getCard": { |
24688 | | - "$ref": "#/components/links/getStatusCardById" |
24689 | 24525 | } |
24690 | 24526 | } |
24691 | 24527 | }, |
|
25084 | 24920 | }, |
25085 | 24921 | "getSource": { |
25086 | 24922 | "$ref": "#/components/links/getStatusSourceById" |
25087 | | - }, |
25088 | | - "getCard": { |
25089 | | - "$ref": "#/components/links/getStatusCardById" |
25090 | 24923 | } |
25091 | 24924 | } |
25092 | 24925 | }, |
|
25324 | 25157 | }, |
25325 | 25158 | "getSource": { |
25326 | 25159 | "$ref": "#/components/links/getStatusSourceById" |
25327 | | - }, |
25328 | | - "getCard": { |
25329 | | - "$ref": "#/components/links/getStatusCardById" |
25330 | 25160 | } |
25331 | 25161 | } |
25332 | 25162 | }, |
|
26057 | 25887 | }, |
26058 | 25888 | "getSource": { |
26059 | 25889 | "$ref": "#/components/links/getStatusSourceById" |
26060 | | - }, |
26061 | | - "getCard": { |
26062 | | - "$ref": "#/components/links/getStatusCardById" |
26063 | 25890 | } |
26064 | 25891 | } |
26065 | 25892 | }, |
|
26273 | 26100 | }, |
26274 | 26101 | "getSource": { |
26275 | 26102 | "$ref": "#/components/links/getStatusSourceById" |
26276 | | - }, |
26277 | | - "getCard": { |
26278 | | - "$ref": "#/components/links/getStatusCardById" |
26279 | 26103 | } |
26280 | 26104 | } |
26281 | 26105 | }, |
|
26489 | 26313 | }, |
26490 | 26314 | "getSource": { |
26491 | 26315 | "$ref": "#/components/links/getStatusSourceById" |
26492 | | - }, |
26493 | | - "getCard": { |
26494 | | - "$ref": "#/components/links/getStatusCardById" |
26495 | 26316 | } |
26496 | 26317 | } |
26497 | 26318 | }, |
|
26705 | 26526 | }, |
26706 | 26527 | "getSource": { |
26707 | 26528 | "$ref": "#/components/links/getStatusSourceById" |
26708 | | - }, |
26709 | | - "getCard": { |
26710 | | - "$ref": "#/components/links/getStatusCardById" |
26711 | 26529 | } |
26712 | 26530 | } |
26713 | 26531 | }, |
|
26921 | 26739 | }, |
26922 | 26740 | "getSource": { |
26923 | 26741 | "$ref": "#/components/links/getStatusSourceById" |
26924 | | - }, |
26925 | | - "getCard": { |
26926 | | - "$ref": "#/components/links/getStatusCardById" |
26927 | 26742 | } |
26928 | 26743 | } |
26929 | 26744 | }, |
|
31607 | 31422 | ] |
31608 | 31423 | }, |
31609 | 31424 | "roles": { |
31610 | | - "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.", |
| 31425 | + "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.", |
31611 | 31426 | "type": [ |
31612 | 31427 | "array", |
31613 | 31428 | "null" |
|
31965 | 31780 | ] |
31966 | 31781 | }, |
31967 | 31782 | "roles": { |
31968 | | - "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.", |
| 31783 | + "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.", |
31969 | 31784 | "type": [ |
31970 | 31785 | "array", |
31971 | 31786 | "null" |
|
32182 | 31997 | ] |
32183 | 31998 | }, |
32184 | 31999 | "roles": { |
32185 | | - "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.", |
| 32000 | + "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.", |
32186 | 32001 | "type": [ |
32187 | 32002 | "array", |
32188 | 32003 | "null" |
|
35246 | 35061 | "format": "uri" |
35247 | 35062 | }, |
35248 | 35063 | "url": { |
35249 | | - "description": "The location of the original full-size attachment.", |
| 35064 | + "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).", |
35250 | 35065 | "type": [ |
35251 | 35066 | "string", |
35252 | 35067 | "null" |
|
40885 | 40700 | } |
40886 | 40701 | ] |
40887 | 40702 | }, |
40888 | | - "PreviewCard200Example": { |
40889 | | - "summary": "Example for PreviewCard", |
40890 | | - "value": { |
40891 | | - "url": "https://www.youtube.com/watch?v=OMv_EPMED8Y", |
40892 | | - "title": "♪ Brand New Friend (Christmas Song!)", |
40893 | | - "description": "", |
40894 | | - "type": "video", |
40895 | | - "author_name": "YOGSCAST Lewis & Simon", |
40896 | | - "author_url": "https://www.youtube.com/user/BlueXephos", |
40897 | | - "provider_name": "YouTube", |
40898 | | - "provider_url": "https://www.youtube.com/", |
40899 | | - "html": "<iframe width=\"480\" height=\"270\" src=\"https://www.youtube.com/embed/OMv_EPMED8Y?feature=oembed\" frameborder=\"0\" allowfullscreen=\"\"></iframe>", |
40900 | | - "width": 480, |
40901 | | - "height": 270, |
40902 | | - "image": "https://files.mastodon.social/preview_cards/images/014/179/145/original/9cf4b7cf5567b569.jpeg", |
40903 | | - "embed_url": "" |
40904 | | - } |
40905 | | - }, |
40906 | 40703 | "Context200Example": { |
40907 | 40704 | "summary": "Example for Context", |
40908 | 40705 | "value": { |
|
41352 | 41149 | "parameters": { |
41353 | 41150 | "id": "$response.body#/id" |
41354 | 41151 | } |
41355 | | - }, |
41356 | | - "getStatusCardById": { |
41357 | | - "operationId": "getStatusCard", |
41358 | | - "description": "Get the status preview card using the response ID", |
41359 | | - "parameters": { |
41360 | | - "id": "$response.body#/id" |
41361 | | - } |
41362 | 41152 | } |
41363 | 41153 | } |
41364 | 41154 | } |
|
0 commit comments