mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
add Bookmarks
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
1b154a8327
commit
bf730c5129
8 changed files with 206 additions and 22 deletions
|
|
@ -11,6 +11,10 @@ paths:
|
|||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
tags:
|
||||
- "follow"
|
||||
- "graphql"
|
||||
|
|
@ -22,6 +26,50 @@ paths:
|
|||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
tags:
|
||||
- "follow"
|
||||
- "graphql"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
FollowResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/FollowData"
|
||||
|
||||
FollowData:
|
||||
required:
|
||||
- "user"
|
||||
properties:
|
||||
user:
|
||||
$ref: "#/components/schemas/FollowUser"
|
||||
|
||||
FollowUser:
|
||||
required:
|
||||
- "result"
|
||||
properties:
|
||||
result:
|
||||
$ref: "#/components/schemas/FollowResult"
|
||||
|
||||
FollowResult:
|
||||
required:
|
||||
- "__typename"
|
||||
- "timeline"
|
||||
properties:
|
||||
__typename:
|
||||
$ref: "./../schemas/typename.yaml#/components/schemas/TypeName" # User
|
||||
timeline:
|
||||
$ref: "#/components/schemas/FollowTimeline"
|
||||
|
||||
FollowTimeline:
|
||||
required:
|
||||
- "timeline"
|
||||
properties:
|
||||
timeline:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue