1
Fork 0
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:
ふぁ 2023-04-19 00:28:21 +09:00
parent 1b154a8327
commit bf730c5129
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
8 changed files with 206 additions and 22 deletions

View file

@ -26,11 +26,18 @@ components:
- "data"
properties:
data:
$ref: "#/components/schemas/BookmarksResponseData"
$ref: "#/components/schemas/BookmarksData"
BookmarksResponseData:
BookmarksData:
required:
- "bookmark_timeline_v2"
properties:
bookmark_timeline_v2:
$ref: "#/components/schemas/BookmarksTimeline"
BookmarksTimeline:
required:
- "timeline"
properties:
timeline:
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"

View file

@ -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"

View file

@ -86,7 +86,7 @@ components:
required:
- "list"
properties:
home:
list:
$ref: "#/components/schemas/ListTweetsTimelineList"
ListTweetsTimelineList: