mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
add Favoriters and Retweeters paths
This commit is contained in:
parent
3dbdd17fbb
commit
aa4a223c7c
6 changed files with 699 additions and 0 deletions
|
|
@ -18,6 +18,35 @@ paths:
|
|||
tags:
|
||||
- "tweet"
|
||||
|
||||
/graphql/{pathQueryId}/Favoriters:
|
||||
get:
|
||||
operationId: getTweetFavoriters
|
||||
description: get tweet favoriters
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/TweetFavoritersResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
|
||||
/graphql/{pathQueryId}/Retweeters:
|
||||
get:
|
||||
operationId: getTweetRetweeters
|
||||
description: get tweet retweeters
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/TweetRetweetersResponse"
|
||||
tags:
|
||||
- "tweet"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
TweetDetailResponse:
|
||||
|
|
@ -33,3 +62,31 @@ components:
|
|||
properties:
|
||||
threaded_conversation_with_injections_v2:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
||||
|
||||
TweetFavoritersResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/TweetFavoritersResponseData"
|
||||
|
||||
TweetFavoritersResponseData:
|
||||
required:
|
||||
- "favoriters_timeline"
|
||||
properties:
|
||||
favoriters_timeline:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/TimelineV2"
|
||||
|
||||
TweetRetweetersResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/TweetRetweetersResponseData"
|
||||
|
||||
TweetRetweetersResponseData:
|
||||
required:
|
||||
- "retweeters_timeline"
|
||||
properties:
|
||||
retweeters_timeline:
|
||||
$ref: "./../schemas/timeline.yaml#/components/schemas/TimelineV2"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue