mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
update builder
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
c22926614e
commit
3419b5c0ab
19 changed files with 539 additions and 480 deletions
61
src/config/component/security_schemes.yaml
Normal file
61
src/config/component/security_schemes.yaml
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
openapi: 3.0.3
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
paths:
|
||||
/parameters:
|
||||
get:
|
||||
parameters:
|
||||
- name: user-agent
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
|
||||
description: "UserAgent, some APIs may be rejected if changed."
|
||||
- name: authorization
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA"
|
||||
description: "It is a constant value and does not need to be changed."
|
||||
- name: x-twitter-active-user
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "yes"
|
||||
description: "Unknown what this value means."
|
||||
- name: x-twitter-client-language
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "en"
|
||||
description: "language code."
|
||||
responses:
|
||||
"200":
|
||||
description: ""
|
||||
|
||||
components:
|
||||
securitySchemes:
|
||||
UserAgent:
|
||||
description: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
|
||||
in: header
|
||||
name: user-agent
|
||||
type: apiKey
|
||||
BearerAuth:
|
||||
description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
|
||||
scheme: bearer
|
||||
type: http
|
||||
ActiveUser:
|
||||
description: "yes"
|
||||
in: header
|
||||
name: x-twitter-active-user
|
||||
type: apiKey
|
||||
ClientLanguage:
|
||||
description: en
|
||||
in: header
|
||||
name: x-twitter-client-language
|
||||
type: apiKey
|
||||
|
|
@ -1,155 +0,0 @@
|
|||
openapi: 3.0.3
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
paths:
|
||||
/parameters:
|
||||
get:
|
||||
parameters:
|
||||
- name: queryId
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "{{Query}}"
|
||||
example: "{{Query}}"
|
||||
|
||||
# {% if get_parameters == string %}
|
||||
|
||||
- name: variables
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "{{Variables}}"
|
||||
example: "{{Variables}}"
|
||||
- name: features
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "{{Features}}"
|
||||
example: "{{Features}}"
|
||||
|
||||
# {% endif %}
|
||||
|
||||
# {% if get_parameters == object %}
|
||||
|
||||
- name: variables
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: object
|
||||
- name: features
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: object
|
||||
- name: queryId
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: object
|
||||
|
||||
# {% endif %}
|
||||
|
||||
# {% if header == parameters %}
|
||||
|
||||
- name: authorization
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA"
|
||||
description: "It is a constant value and does not need to be changed."
|
||||
- name: x-twitter-active-user
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "yes"
|
||||
description: "Unknown what this value means."
|
||||
- name: x-twitter-client-language
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "en"
|
||||
description: "language code."
|
||||
- name: user-agent
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
|
||||
description: "UserAgent, some APIs may be rejected if changed."
|
||||
|
||||
# {% endif %}
|
||||
responses:
|
||||
"200":
|
||||
description: ""
|
||||
|
||||
post:
|
||||
# {% if header == parameters %}
|
||||
|
||||
parameters:
|
||||
- name: authorization
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA"
|
||||
description: "It is a constant value and does not need to be changed."
|
||||
- name: x-twitter-active-user
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "yes"
|
||||
description: "Unknown what this value means."
|
||||
- name: x-twitter-client-language
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "en"
|
||||
description: "language code."
|
||||
- name: user-agent
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
|
||||
description: "UserAgent, some APIs may be rejected if changed."
|
||||
|
||||
# {% endif %}
|
||||
|
||||
# {% if post_parameters == object %}
|
||||
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
required:
|
||||
- "queryId"
|
||||
- "variables"
|
||||
- "features"
|
||||
properties:
|
||||
queryId:
|
||||
type: string
|
||||
default: "{{Query}}"
|
||||
example: "{{Query}}"
|
||||
variables:
|
||||
type: object
|
||||
# default: "{{Variables}}"
|
||||
example: "{{Variables}}"
|
||||
features:
|
||||
type: object
|
||||
# default: "{{Features}}"
|
||||
example: "{{Features}}"
|
||||
|
||||
# {% endif %}
|
||||
responses:
|
||||
"200":
|
||||
description: ""
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"HomeTimeline": {
|
||||
"Query": "HCosKfLNW1AcOo3la3mMgg",
|
||||
"Variables": {
|
||||
"queryId": "HCosKfLNW1AcOo3la3mMgg",
|
||||
"variables": {
|
||||
"count": 20,
|
||||
"includePromotedContent": true,
|
||||
"latestControlAvailable": true,
|
||||
"requestContext": "launch",
|
||||
"withCommunity": true
|
||||
},
|
||||
"Features": {
|
||||
"features": {
|
||||
"blue_business_profile_image_shape_enabled": true,
|
||||
"responsive_web_graphql_exclude_directive_enabled": true,
|
||||
"verified_phone_label_enabled": false,
|
||||
|
|
@ -31,14 +31,14 @@
|
|||
}
|
||||
},
|
||||
"HomeLatestTimeline": {
|
||||
"Query": "zhX91JE87mWvfprhYE97xA",
|
||||
"Variables": {
|
||||
"queryId": "zhX91JE87mWvfprhYE97xA",
|
||||
"variables": {
|
||||
"count": 20,
|
||||
"includePromotedContent": true,
|
||||
"latestControlAvailable": true,
|
||||
"requestContext": "launch"
|
||||
},
|
||||
"Features": {
|
||||
"features": {
|
||||
"blue_business_profile_image_shape_enabled": true,
|
||||
"responsive_web_graphql_exclude_directive_enabled": true,
|
||||
"verified_phone_label_enabled": false,
|
||||
|
|
@ -61,12 +61,12 @@
|
|||
}
|
||||
},
|
||||
"ListLatestTweetsTimeline": {
|
||||
"Query": "2TemLyqrMpTeAmysdbnVqw",
|
||||
"Variables": {
|
||||
"queryId": "2TemLyqrMpTeAmysdbnVqw",
|
||||
"variables": {
|
||||
"listId": "53044119",
|
||||
"count": 20
|
||||
},
|
||||
"Features": {
|
||||
"features": {
|
||||
"blue_business_profile_image_shape_enabled": true,
|
||||
"responsive_web_graphql_exclude_directive_enabled": true,
|
||||
"verified_phone_label_enabled": false,
|
||||
|
|
@ -89,12 +89,12 @@
|
|||
}
|
||||
},
|
||||
"UserByScreenName": {
|
||||
"Query": "sLVLhk0bGj3MVFEKTdax1w",
|
||||
"Variables": {
|
||||
"queryId": "sLVLhk0bGj3MVFEKTdax1w",
|
||||
"variables": {
|
||||
"screen_name": "elonmusk",
|
||||
"withSafetyModeUserFields": true
|
||||
},
|
||||
"Features": {
|
||||
"features": {
|
||||
"blue_business_profile_image_shape_enabled": true,
|
||||
"responsive_web_graphql_exclude_directive_enabled": true,
|
||||
"verified_phone_label_enabled": false,
|
||||
|
|
@ -103,15 +103,15 @@
|
|||
}
|
||||
},
|
||||
"ProfileSpotlightsQuery": {
|
||||
"Query": "9zwVLJ48lmVUk8u_Gh9DmA",
|
||||
"Variables": {
|
||||
"queryId": "9zwVLJ48lmVUk8u_Gh9DmA",
|
||||
"variables": {
|
||||
"screen_name": "elonmusk"
|
||||
},
|
||||
"Features": {}
|
||||
"features": {}
|
||||
},
|
||||
"UserTweets": {
|
||||
"Query": "HuTx74BxAnezK1gWvYY7zg",
|
||||
"Variables": {
|
||||
"queryId": "HuTx74BxAnezK1gWvYY7zg",
|
||||
"variables": {
|
||||
"userId": "44196397",
|
||||
"count": 40,
|
||||
"includePromotedContent": true,
|
||||
|
|
@ -119,7 +119,7 @@
|
|||
"withVoice": true,
|
||||
"withV2Timeline": true
|
||||
},
|
||||
"Features": {
|
||||
"features": {
|
||||
"blue_business_profile_image_shape_enabled": true,
|
||||
"responsive_web_graphql_exclude_directive_enabled": true,
|
||||
"verified_phone_label_enabled": false,
|
||||
|
|
@ -142,8 +142,8 @@
|
|||
}
|
||||
},
|
||||
"UserTweetsAndReplies": {
|
||||
"Query": "RIWc55YCNyUJ-U3HHGYkdg",
|
||||
"Variables": {
|
||||
"queryId": "RIWc55YCNyUJ-U3HHGYkdg",
|
||||
"variables": {
|
||||
"userId": "44196397",
|
||||
"count": 40,
|
||||
"includePromotedContent": true,
|
||||
|
|
@ -151,7 +151,7 @@
|
|||
"withVoice": true,
|
||||
"withV2Timeline": true
|
||||
},
|
||||
"Features": {
|
||||
"features": {
|
||||
"blue_business_profile_image_shape_enabled": true,
|
||||
"responsive_web_graphql_exclude_directive_enabled": true,
|
||||
"verified_phone_label_enabled": false,
|
||||
|
|
@ -174,8 +174,8 @@
|
|||
}
|
||||
},
|
||||
"UserMedia": {
|
||||
"Query": "YqiE3JL1KNgf9nSljYdxaA",
|
||||
"Variables": {
|
||||
"queryId": "YqiE3JL1KNgf9nSljYdxaA",
|
||||
"variables": {
|
||||
"userId": "44196397",
|
||||
"count": 40,
|
||||
"includePromotedContent": false,
|
||||
|
|
@ -184,7 +184,7 @@
|
|||
"withVoice": true,
|
||||
"withV2Timeline": true
|
||||
},
|
||||
"Features": {
|
||||
"features": {
|
||||
"blue_business_profile_image_shape_enabled": true,
|
||||
"responsive_web_graphql_exclude_directive_enabled": true,
|
||||
"verified_phone_label_enabled": false,
|
||||
|
|
@ -207,8 +207,8 @@
|
|||
}
|
||||
},
|
||||
"Likes": {
|
||||
"Query": "5fmEkRT-1AdHqEsbVgehMg",
|
||||
"Variables": {
|
||||
"queryId": "5fmEkRT-1AdHqEsbVgehMg",
|
||||
"variables": {
|
||||
"userId": "44196397",
|
||||
"count": 20,
|
||||
"includePromotedContent": false,
|
||||
|
|
@ -217,7 +217,7 @@
|
|||
"withVoice": true,
|
||||
"withV2Timeline": true
|
||||
},
|
||||
"Features": {
|
||||
"features": {
|
||||
"blue_business_profile_image_shape_enabled": true,
|
||||
"responsive_web_graphql_exclude_directive_enabled": true,
|
||||
"verified_phone_label_enabled": false,
|
||||
|
|
@ -240,12 +240,12 @@
|
|||
}
|
||||
},
|
||||
"Bookmarks": {
|
||||
"Query": "tmd4ifV8RHltzn8ymGg1aw",
|
||||
"Variables": {
|
||||
"queryId": "tmd4ifV8RHltzn8ymGg1aw",
|
||||
"variables": {
|
||||
"count": 20,
|
||||
"includePromotedContent": true
|
||||
},
|
||||
"Features": {
|
||||
"features": {
|
||||
"graphql_timeline_v2_bookmark_timeline": true,
|
||||
"blue_business_profile_image_shape_enabled": true,
|
||||
"responsive_web_graphql_exclude_directive_enabled": true,
|
||||
|
|
@ -269,8 +269,8 @@
|
|||
}
|
||||
},
|
||||
"TweetDetail": {
|
||||
"Query": "wNNG8DBB8EaXw1lq4vFWGA",
|
||||
"Variables": {
|
||||
"queryId": "wNNG8DBB8EaXw1lq4vFWGA",
|
||||
"variables": {
|
||||
"focalTweetId": "1349129669258448897",
|
||||
"with_rux_injections": false,
|
||||
"includePromotedContent": true,
|
||||
|
|
@ -280,7 +280,7 @@
|
|||
"withVoice": true,
|
||||
"withV2Timeline": true
|
||||
},
|
||||
"Features": {
|
||||
"features": {
|
||||
"blue_business_profile_image_shape_enabled": true,
|
||||
"responsive_web_graphql_exclude_directive_enabled": true,
|
||||
"verified_phone_label_enabled": false,
|
||||
|
|
@ -303,13 +303,13 @@
|
|||
}
|
||||
},
|
||||
"Followers": {
|
||||
"Query": "djdTXDIk2qhd4OStqlUFeQ",
|
||||
"Variables": {
|
||||
"queryId": "djdTXDIk2qhd4OStqlUFeQ",
|
||||
"variables": {
|
||||
"userId": "44196397",
|
||||
"count": 20,
|
||||
"includePromotedContent": false
|
||||
},
|
||||
"Features": {
|
||||
"features": {
|
||||
"blue_business_profile_image_shape_enabled": true,
|
||||
"responsive_web_graphql_exclude_directive_enabled": true,
|
||||
"verified_phone_label_enabled": false,
|
||||
|
|
@ -332,13 +332,13 @@
|
|||
}
|
||||
},
|
||||
"Following": {
|
||||
"Query": "IWP6Zt14sARO29lJT35bBw",
|
||||
"Variables": {
|
||||
"queryId": "IWP6Zt14sARO29lJT35bBw",
|
||||
"variables": {
|
||||
"userId": "44196397",
|
||||
"count": 20,
|
||||
"includePromotedContent": false
|
||||
},
|
||||
"Features": {
|
||||
"features": {
|
||||
"blue_business_profile_image_shape_enabled": true,
|
||||
"responsive_web_graphql_exclude_directive_enabled": true,
|
||||
"verified_phone_label_enabled": false,
|
||||
|
|
@ -361,32 +361,44 @@
|
|||
}
|
||||
},
|
||||
"FavoriteTweet": {
|
||||
"Query": "lI07N6Otwv1PhnEgXILM7A",
|
||||
"Variables": {
|
||||
"tweet_id": "1349129669258448897"
|
||||
"queryId": "lI07N6Otwv1PhnEgXILM7A",
|
||||
"Parameters": {
|
||||
"variables": {
|
||||
"tweet_id": "1349129669258448897"
|
||||
},
|
||||
"features": {}
|
||||
}
|
||||
},
|
||||
"UnfavoriteTweet": {
|
||||
"Query": "ZYKSe-w7KEslx3JhSIk5LA",
|
||||
"Variables": {
|
||||
"tweet_id": "1349129669258448897"
|
||||
"queryId": "ZYKSe-w7KEslx3JhSIk5LA",
|
||||
"Parameters": {
|
||||
"variables": {
|
||||
"tweet_id": "1349129669258448897"
|
||||
},
|
||||
"features": {}
|
||||
}
|
||||
},
|
||||
"CreateRetweet": {
|
||||
"Query": "ojPdsZsimiJrUGLR1sjUtA",
|
||||
"Variables": {
|
||||
"tweet_id": "1349129669258448897"
|
||||
"queryId": "ojPdsZsimiJrUGLR1sjUtA",
|
||||
"Parameters": {
|
||||
"variables": {
|
||||
"tweet_id": "1349129669258448897"
|
||||
},
|
||||
"features": {}
|
||||
}
|
||||
},
|
||||
"DeleteRetweet": {
|
||||
"Query": "iQtK4dl5hBmXewYZuEOKVw",
|
||||
"Variables": {
|
||||
"tweet_id": "1349129669258448897"
|
||||
"queryId": "iQtK4dl5hBmXewYZuEOKVw",
|
||||
"Parameters": {
|
||||
"variables": {
|
||||
"tweet_id": "1349129669258448897"
|
||||
},
|
||||
"features": {}
|
||||
}
|
||||
},
|
||||
"CreateTweet": {
|
||||
"Query": "1RyAhNwby-gzGCRVsMxKbQ",
|
||||
"Variables": {
|
||||
"queryId": "1RyAhNwby-gzGCRVsMxKbQ",
|
||||
"variables": {
|
||||
"tweet_text": "test",
|
||||
"media": {
|
||||
"media_entities": [],
|
||||
|
|
@ -395,7 +407,7 @@
|
|||
"semantic_annotation_ids": [],
|
||||
"dark_request": false
|
||||
},
|
||||
"Features": {
|
||||
"features": {
|
||||
"tweetypie_unmention_optimization_enabled": true,
|
||||
"vibe_api_enabled": true,
|
||||
"responsive_web_edit_tweet_api_enabled": true,
|
||||
|
|
@ -418,14 +430,31 @@
|
|||
}
|
||||
},
|
||||
"DeleteTweet": {
|
||||
"Query": "VaenaVgh5q5ih7kvyVjgtg",
|
||||
"Variables": {
|
||||
"queryId": "VaenaVgh5q5ih7kvyVjgtg",
|
||||
"variables": {
|
||||
"tweet_id": "1349129669258448897"
|
||||
}
|
||||
},
|
||||
"features": {}
|
||||
},
|
||||
"create.json": {
|
||||
"include_profile_interstitial_type": 1,
|
||||
"include_blocking": 1,
|
||||
"include_blocked_by": 1,
|
||||
"include_followed_by": 1,
|
||||
"include_want_retweets": 1,
|
||||
"include_mute_edge": 1,
|
||||
"include_can_dm": 1,
|
||||
"include_can_media_tag": 1,
|
||||
"include_ext_has_nft_avatar": 1,
|
||||
"include_ext_is_blue_verified": 1,
|
||||
"include_ext_verified_type": 1,
|
||||
"include_ext_profile_image_shape": 1,
|
||||
"skip_status": 1,
|
||||
"user_id": 1180389371481976833
|
||||
},
|
||||
"Template": {
|
||||
"Query": "",
|
||||
"Variables": {},
|
||||
"Features": {}
|
||||
"queryId": "",
|
||||
"variables": {},
|
||||
"features": {}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
{
|
||||
"docs": {
|
||||
"header": "securitySchemes",
|
||||
"get_parameters": "schema_content",
|
||||
"post_parameters": "schema_parameters"
|
||||
},
|
||||
"dart": {
|
||||
"header": "parameters",
|
||||
"get_parameters": "string",
|
||||
"post_parameters": "object"
|
||||
},
|
||||
"typescript": {
|
||||
"header": "securitySchemes",
|
||||
"get_parameters": "string",
|
||||
"post_parameters": "object"
|
||||
},
|
||||
"test": {
|
||||
"header": "securitySchemes",
|
||||
"get_parameters": "string",
|
||||
"post_parameters": "string"
|
||||
}
|
||||
}
|
||||
|
|
@ -42,30 +42,6 @@ components:
|
|||
name: x-twitter-auth-type
|
||||
description: "OAuth2Session if you are logged in"
|
||||
|
||||
# {% if header == securitySchemes %}
|
||||
|
||||
UserAgent:
|
||||
description: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
|
||||
in: header
|
||||
name: user-agent
|
||||
type: apiKey
|
||||
ActiveUser:
|
||||
description: "yes"
|
||||
in: header
|
||||
name: x-twitter-active-user
|
||||
type: apiKey
|
||||
BearerAuth:
|
||||
description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
|
||||
scheme: bearer
|
||||
type: http
|
||||
ClientLanguage:
|
||||
description: en
|
||||
in: header
|
||||
name: x-twitter-client-language
|
||||
type: apiKey
|
||||
|
||||
# {% endif %}
|
||||
|
||||
security:
|
||||
- bearerAuth: []
|
||||
- CsrfToken: []
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ info:
|
|||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/{{BookmarksQuery}}/Bookmarks:
|
||||
/graphql/{{queryId}}/Bookmarks:
|
||||
get:
|
||||
operationId: getBookmarks
|
||||
description: get bookmarks
|
||||
|
|
@ -16,7 +16,7 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/BookmarksResponse"
|
||||
tags:
|
||||
- "Tweet"
|
||||
- "tweet"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ info:
|
|||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/{{FollowingQuery}}/Following:
|
||||
/graphql/{{queryId}}/Following:
|
||||
get:
|
||||
operationId: getFollowing
|
||||
description: get user list of following
|
||||
|
|
@ -16,9 +16,9 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
tags:
|
||||
- "UserList"
|
||||
- "userList"
|
||||
|
||||
/{{FollowersQuery}}/Followers:
|
||||
/graphql/{{queryId}}/Followers:
|
||||
get:
|
||||
operationId: getFollowers
|
||||
description: get user list of followers
|
||||
|
|
@ -30,7 +30,7 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/FollowResponse"
|
||||
tags:
|
||||
- "UserList"
|
||||
- "userList"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ info:
|
|||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/{{FavoriteTweetQuery}}/FavoriteTweet:
|
||||
/graphql/{{queryId}}/FavoriteTweet:
|
||||
post:
|
||||
operationId: postFavoriteTweet
|
||||
description: favorite Tweet
|
||||
|
|
@ -16,9 +16,9 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/FavoriteTweetResponseData"
|
||||
tags:
|
||||
- "Post"
|
||||
- "post"
|
||||
|
||||
/{{UnfavoriteTweetQuery}}/UnfavoriteTweet:
|
||||
/graphql/{{queryId}}/UnfavoriteTweet:
|
||||
post:
|
||||
operationId: postUnfavoriteTweet
|
||||
description: unfavorite Tweet
|
||||
|
|
@ -30,9 +30,9 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/UnfavoriteTweetResponseData"
|
||||
tags:
|
||||
- "Post"
|
||||
- "post"
|
||||
|
||||
/{{CreateRetweetQuery}}/CreateRetweet:
|
||||
/graphql/{{queryId}}/CreateRetweet:
|
||||
post:
|
||||
operationId: postCreateRetweet
|
||||
description: create Retweet
|
||||
|
|
@ -44,9 +44,9 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/CreateRetweetResponse"
|
||||
tags:
|
||||
- "Post"
|
||||
- "post"
|
||||
|
||||
/{{DeleteRetweetQuery}}/DeleteRetweet:
|
||||
/graphql/{{queryId}}/DeleteRetweet:
|
||||
post:
|
||||
operationId: postDeleteRetweet
|
||||
description: delete Retweet
|
||||
|
|
@ -58,9 +58,9 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/DeleteRetweetResponse"
|
||||
tags:
|
||||
- "Post"
|
||||
- "post"
|
||||
|
||||
/{{CreateTweetQuery}}/CreateTweet:
|
||||
/graphql/{{queryId}}/CreateTweet:
|
||||
post:
|
||||
operationId: postCreateTweet
|
||||
description: create Tweet
|
||||
|
|
@ -72,9 +72,9 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/CreateTweetResponse"
|
||||
tags:
|
||||
- "Post"
|
||||
- "post"
|
||||
|
||||
/{{DeleteTweetQuery}}/DeleteTweet:
|
||||
/graphql/{{queryId}}/DeleteTweet:
|
||||
post:
|
||||
operationId: postDeleteTweet
|
||||
description: delete Retweet
|
||||
|
|
@ -86,7 +86,7 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/DeleteTweetResponse"
|
||||
tags:
|
||||
- "Post"
|
||||
- "post"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ info:
|
|||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/{{ProfileSpotlightsQueryQuery}}/ProfileSpotlightsQuery:
|
||||
/graphql/{{queryId}}/ProfileSpotlightsQuery:
|
||||
get:
|
||||
operationId: getProfileSpotlightsQuery
|
||||
description: "get user by screen name"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ info:
|
|||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/{{HomeTimelineQuery}}/HomeTimeline:
|
||||
/graphql/{{queryId}}/HomeTimeline:
|
||||
get:
|
||||
operationId: getHomeTimeline
|
||||
description: get tweet list of timeline
|
||||
|
|
@ -16,9 +16,9 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/TimelineResponse"
|
||||
tags:
|
||||
- "Tweet"
|
||||
- "tweet"
|
||||
|
||||
/{{HomeLatestTimelineQuery}}/HomeLatestTimeline:
|
||||
/graphql/{{queryId}}/HomeLatestTimeline:
|
||||
get:
|
||||
operationId: getHomeLatestTimeline
|
||||
description: get tweet list of timeline
|
||||
|
|
@ -30,9 +30,9 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/TimelineResponse"
|
||||
tags:
|
||||
- "Tweet"
|
||||
- "tweet"
|
||||
|
||||
/{{ListLatestTweetsTimelineQuery}}/ListLatestTweetsTimeline:
|
||||
/graphql/{{queryId}}/ListLatestTweetsTimeline:
|
||||
get:
|
||||
operationId: getListLatestTweetsTimeline
|
||||
description: get tweet list of timeline
|
||||
|
|
@ -44,7 +44,7 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/ListTweetsTimelineResponse"
|
||||
tags:
|
||||
- "Tweet"
|
||||
- "tweet"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ info:
|
|||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/{{TweetDetailQuery}}/TweetDetail:
|
||||
/graphql/{{queryId}}/TweetDetail:
|
||||
get:
|
||||
operationId: getTweetDetail
|
||||
description: get TweetDetail
|
||||
|
|
@ -16,7 +16,7 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/TweetDetailResponse"
|
||||
tags:
|
||||
- "Tweet"
|
||||
- "tweet"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ info:
|
|||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/{{UserByScreenNameQuery}}/UserByScreenName:
|
||||
/graphql/{{queryId}}/UserByScreenName:
|
||||
get:
|
||||
operationId: getUserByScreenName
|
||||
description: "get user by screen name"
|
||||
|
|
@ -16,7 +16,7 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/UserResponse"
|
||||
tags:
|
||||
- "User"
|
||||
- "user"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ info:
|
|||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/{{UserTweetsQuery}}/UserTweets:
|
||||
/graphql/{{queryId}}/UserTweets:
|
||||
get:
|
||||
operationId: getUserTweets
|
||||
description: "get user tweets"
|
||||
|
|
@ -16,9 +16,9 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
tags:
|
||||
- "Tweet"
|
||||
- "tweet"
|
||||
|
||||
/{{UserTweetsAndRepliesQuery}}/UserTweetsAndReplies:
|
||||
/graphql/{{queryId}}/UserTweetsAndReplies:
|
||||
get:
|
||||
operationId: getUserTweetsAndReplies
|
||||
description: "get user replies tweets"
|
||||
|
|
@ -30,9 +30,9 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
tags:
|
||||
- "Tweet"
|
||||
- "tweet"
|
||||
|
||||
/{{UserMediaQuery}}/UserMedia:
|
||||
/graphql/{{queryId}}/UserMedia:
|
||||
get:
|
||||
operationId: getUserMedia
|
||||
description: "get user media tweets"
|
||||
|
|
@ -44,9 +44,9 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
tags:
|
||||
- "Tweet"
|
||||
- "tweet"
|
||||
|
||||
/{{LikesQuery}}/Likes:
|
||||
/graphql/{{queryId}}/Likes:
|
||||
get:
|
||||
operationId: getLikes
|
||||
description: "get user likes tweets"
|
||||
|
|
@ -58,7 +58,7 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/UserTweetsResponse"
|
||||
tags:
|
||||
- "Tweet"
|
||||
- "tweet"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
|
|
|||
15
src/openapi/paths/v1.1.yaml
Normal file
15
src/openapi/paths/v1.1.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
openapi: 3.0.3
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/1.1/friendships/create.json:
|
||||
post:
|
||||
operationId: postCreateFriendships
|
||||
description: post create friendships
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
tags:
|
||||
- "v1.1"
|
||||
Loading…
Add table
Add a link
Reference in a new issue