1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-12 08:00:27 +01:00

add Favoriters and Retweeters paths

This commit is contained in:
Erika 2023-07-07 21:23:53 +01:00
parent 3dbdd17fbb
commit aa4a223c7c
6 changed files with 699 additions and 0 deletions

View file

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