mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
add error handling
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
49b7951ba3
commit
853709bb44
8 changed files with 78 additions and 26 deletions
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FollowResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
@ -28,7 +30,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FollowResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
@ -42,7 +46,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FollowResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/OtherResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/OtherResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "other"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/FavoriteTweetResponseData"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/FavoriteTweetResponseData"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -28,7 +30,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UnfavoriteTweetResponseData"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UnfavoriteTweetResponseData"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -42,7 +46,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CreateRetweetResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/CreateRetweetResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -56,7 +62,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/DeleteRetweetResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/DeleteRetweetResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -70,7 +78,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CreateTweetResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/CreateTweetResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
@ -84,7 +94,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/DeleteTweetResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/DeleteTweetResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "post"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ProfileResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/ProfileResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/TimelineResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TimelineResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -28,7 +30,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/TimelineResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TimelineResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -42,7 +46,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ListLatestTweetsTimelineResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/ListLatestTweetsTimelineResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -56,7 +62,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/SearchTimelineResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/SearchTimelineResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/TweetDetailResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TweetDetailResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -28,7 +30,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/TweetFavoritersResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TweetFavoritersResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
@ -42,7 +46,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/TweetRetweetersResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/TweetRetweetersResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user-list"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user"
|
||||
|
||||
|
|
@ -28,7 +30,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user"
|
||||
|
||||
|
|
@ -42,7 +46,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UsersResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UsersResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "user"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -28,7 +30,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -42,7 +46,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserHighlightsTweetsResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserHighlightsTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -56,7 +62,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
@ -70,7 +78,9 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/UserTweetsResponse"
|
||||
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue