1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00
twitter-openapi/src/openapi/paths/usertweets.yaml
ふぁ 2d477a0fb8
add highlight
Signed-off-by: ふぁ <yuki@yuki0311.com>
2023-07-20 10:58:44 +09:00

146 lines
3.6 KiB
YAML

openapi: 3.0.3
info:
title: Twitter OpenAPI
version: 0.0.1
paths:
/graphql/{pathQueryId}/UserTweets:
get:
operationId: getUserTweets
description: "get user tweets"
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/UserTweetsResponse"
tags:
- "tweet"
/graphql/{pathQueryId}/UserTweetsAndReplies:
get:
operationId: getUserTweetsAndReplies
description: "get user replies tweets"
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/UserTweetsResponse"
tags:
- "tweet"
/graphql/{pathQueryId}/UserHighlightsTweets:
get:
operationId: getUserHighlightsTweets
description: "get user highlights tweets"
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/UserHighlightsTweetsResponse"
tags:
- "tweet"
/graphql/{pathQueryId}/UserMedia:
get:
operationId: getUserMedia
description: "get user media tweets"
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/UserTweetsResponse"
tags:
- "tweet"
/graphql/{pathQueryId}/Likes:
get:
operationId: getLikes
description: "get user likes tweets"
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/UserTweetsResponse"
tags:
- "tweet"
components:
schemas:
UserTweetsResponse:
required:
- "data"
properties:
data:
$ref: "#/components/schemas/UserTweetsData"
UserTweetsData:
required:
- "user"
properties:
user:
$ref: "#/components/schemas/UserTweetsUser"
UserTweetsUser:
required:
- "result"
properties:
result:
$ref: "#/components/schemas/UserTweetsResult"
UserTweetsResult:
required:
- "__typename"
- "timeline_v2"
properties:
__typename:
$ref: "./../schemas/typename.yaml#/components/schemas/TypeName" # User
timeline_v2:
$ref: "./../schemas/timeline.yaml#/components/schemas/TimelineV2"
UserHighlightsTweetsResponse:
required:
- "data"
properties:
data:
$ref: "#/components/schemas/UserHighlightsTweetsData"
UserHighlightsTweetsData:
required:
- "user"
properties:
user:
$ref: "#/components/schemas/UserHighlightsTweetsUser"
UserHighlightsTweetsUser:
required:
- "result"
properties:
result:
$ref: "#/components/schemas/UserHighlightsTweetsResult"
UserHighlightsTweetsResult:
required:
- "timeline"
- "__typename"
properties:
timeline:
$ref: "#/components/schemas/UserHighlightsTweetsTimeline"
__typename:
$ref: "./../schemas/typename.yaml#/components/schemas/TypeName" # User
UserHighlightsTweetsTimeline:
required:
- "timeline"
properties:
timeline:
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"