1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00

Merge pull request #15 from rrika/favoriters-and-retweeters

add Favoriters and Retweeters paths
This commit is contained in:
ふぁ 2023-07-09 00:21:36 +09:00 committed by GitHub
commit 91f9fbdf47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"