1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-04-08 17:57:22 +09:00
commit 50e5f66a3e
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
4 changed files with 938 additions and 0 deletions

108
openapi-3.0.yaml Normal file
View file

@ -0,0 +1,108 @@
openapi: 3.0.3
info:
title: Twitter OpenAPI
description: |-
Twitter OpenAPI
termsOfService: https://github.com/fa0311
contact:
email: yuki@yuki0311.com
license:
name: other
url: https://github.com/fa0311/twitter-openapi/LICENSE
version: 0.0.1
servers:
- url: https://twitter.com/i/api/graphql
paths:
/BntFPEOxs3GYdPaS6CjUcg/HomeTimeline:
get:
description: get timeline
requestBody:
description: Update an existent pet in the store
content:
application/json:
schema:
$ref: "#/components/schemas/HomeTimelineData"
required: true
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/HomeTimelineData"
/FaBzCqZXuQCb4PhB0RHqHw/Following:
get:
description: get following user list
requestBody:
description: Update an existent pet in the store
content:
application/json:
schema:
$ref: "#/components/schemas/HomeTimelineData"
required: true
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/HomeTimelineData"
/VptSi88PiaQhBevFbGVlGg/Followers:
get:
description: get followers user list
requestBody:
description: Update an existent pet in the store
content:
application/json:
schema:
$ref: "#/components/schemas/HomeTimelineData"
required: true
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/HomeTimelineData"
components:
schemas:
HomeTimelineResponse:
properties:
data:
$ref: "#/components/schemas/HomeTimelineData"
HomeTimelineData:
properties:
home:
$ref: "#/components/schemas/HomeTimelineHome"
HomeTimelineHome:
properties:
home_timeline_urt:
$ref: "#/components/schemas/HomeTimelineUrt"
HomeTimelineUrt:
properties:
instructions:
type: "array"
items:
oneOf:
- $ref: "#/components/schemas/TimelineAddEntries"
discriminator:
propertyName: type
mapping":
TimelineAddEntries: "#components/schemas/TimelineAddEntries"
InstructionType:
type: string
enum: [TimelineAddEntries, TimelineTerminateTimeline]
TimelineAddEntries:
properties:
type:
$ref: "#/components/schemas/InstructionType"
entries:
type: "string" #todo