1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00
twitter-openapi/src/openapi/path/follow.yaml
ふぁ bf730c5129
add Bookmarks
Signed-off-by: ふぁ <yuki@yuki0311.com>
2023-04-19 00:28:21 +09:00

75 lines
1.7 KiB
YAML

openapi: 3.0.3
info:
title: Twitter OpenAPI
version: 0.0.1
paths:
/{{FollowingQuery}}/Following:
get:
operationId: getFollowers
description: get user list of followers
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/FollowResponse"
tags:
- "follow"
- "graphql"
/{{FollowersQuery}}/Followers:
get:
operationId: getFollowing
description: get user list of following
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"