mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
build
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
ff542ebb2d
commit
29e05d162f
4 changed files with 366 additions and 0 deletions
4
dist/compatible/openapi-3.0.yaml
vendored
4
dist/compatible/openapi-3.0.yaml
vendored
|
|
@ -106,6 +106,8 @@ paths:
|
||||||
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail
|
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail
|
||||||
/graphql/{pathQueryId}/UnfavoriteTweet:
|
/graphql/{pathQueryId}/UnfavoriteTweet:
|
||||||
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet
|
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet
|
||||||
|
/graphql/{pathQueryId}/UserByRestId:
|
||||||
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByRestId
|
||||||
/graphql/{pathQueryId}/UserByScreenName:
|
/graphql/{pathQueryId}/UserByScreenName:
|
||||||
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName
|
||||||
/graphql/{pathQueryId}/UserMedia:
|
/graphql/{pathQueryId}/UserMedia:
|
||||||
|
|
@ -114,6 +116,8 @@ paths:
|
||||||
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweets
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweets
|
||||||
/graphql/{pathQueryId}/UserTweetsAndReplies:
|
/graphql/{pathQueryId}/UserTweetsAndReplies:
|
||||||
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweetsAndReplies
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweetsAndReplies
|
||||||
|
/graphql/{pathQueryId}/UsersByRestIds:
|
||||||
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UsersByRestIds
|
||||||
/other:
|
/other:
|
||||||
$ref: ./paths/other.yaml#/paths/~1other
|
$ref: ./paths/other.yaml#/paths/~1other
|
||||||
security:
|
security:
|
||||||
|
|
|
||||||
144
dist/compatible/paths/user.yaml
vendored
144
dist/compatible/paths/user.yaml
vendored
|
|
@ -12,11 +12,91 @@ components:
|
||||||
$ref: ./../schemas/user.yaml#/components/schemas/UserResults
|
$ref: ./../schemas/user.yaml#/components/schemas/UserResults
|
||||||
required:
|
required:
|
||||||
- user
|
- user
|
||||||
|
UsersResponse:
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
$ref: '#/components/schemas/UsersResponseData'
|
||||||
|
required:
|
||||||
|
- data
|
||||||
|
UsersResponseData:
|
||||||
|
properties:
|
||||||
|
users:
|
||||||
|
items:
|
||||||
|
$ref: ./../schemas/user.yaml#/components/schemas/UserResults
|
||||||
|
type: array
|
||||||
|
required:
|
||||||
|
- users
|
||||||
info:
|
info:
|
||||||
title: Twitter OpenAPI
|
title: Twitter OpenAPI
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
openapi: 3.0.3
|
openapi: 3.0.3
|
||||||
paths:
|
paths:
|
||||||
|
/graphql/{pathQueryId}/UserByRestId:
|
||||||
|
get:
|
||||||
|
description: get user by rest id
|
||||||
|
operationId: getUserByRestId
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: pathQueryId
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: Lxg1V9AiIzzXEiP2c8dRnw
|
||||||
|
example: Lxg1V9AiIzzXEiP2c8dRnw
|
||||||
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: variables
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: '{"userId": "44196397", "withSafetyModeUserFields": true}'
|
||||||
|
example: '{"userId": "44196397", "withSafetyModeUserFields": true}'
|
||||||
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: features
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: '{"hidden_profile_likes_enabled": false, "responsive_web_graphql_exclude_directive_enabled":
|
||||||
|
true, "verified_phone_label_enabled": false, "highlights_tweets_tab_ui_enabled":
|
||||||
|
true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
||||||
|
false, "responsive_web_graphql_timeline_navigation_enabled": true}'
|
||||||
|
example: '{"hidden_profile_likes_enabled": false, "responsive_web_graphql_exclude_directive_enabled":
|
||||||
|
true, "verified_phone_label_enabled": false, "highlights_tweets_tab_ui_enabled":
|
||||||
|
true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
||||||
|
false, "responsive_web_graphql_timeline_navigation_enabled": true}'
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/UserResponse'
|
||||||
|
description: Successful operation
|
||||||
|
headers:
|
||||||
|
x-connection-hash:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-rate-limit-limit:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-remaining:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-reset:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-response-time:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-tfe-preserve-body:
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
x-transaction-id:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-twitter-response-tags:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
tags:
|
||||||
|
- user
|
||||||
/graphql/{pathQueryId}/UserByScreenName:
|
/graphql/{pathQueryId}/UserByScreenName:
|
||||||
get:
|
get:
|
||||||
description: get user by screen name
|
description: get user by screen name
|
||||||
|
|
@ -81,3 +161,67 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
tags:
|
tags:
|
||||||
- user
|
- user
|
||||||
|
/graphql/{pathQueryId}/UsersByRestIds:
|
||||||
|
get:
|
||||||
|
description: get users by rest ids
|
||||||
|
operationId: getUsersByRestIds
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: pathQueryId
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: GD4q8bBE2i6cqWw2iT74Gg
|
||||||
|
example: GD4q8bBE2i6cqWw2iT74Gg
|
||||||
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: variables
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: '{"userIds": ["44196397"]}'
|
||||||
|
example: '{"userIds": ["44196397"]}'
|
||||||
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: features
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: '{"responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled":
|
||||||
|
false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
||||||
|
false, "responsive_web_graphql_timeline_navigation_enabled": true}'
|
||||||
|
example: '{"responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled":
|
||||||
|
false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
||||||
|
false, "responsive_web_graphql_timeline_navigation_enabled": true}'
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/UsersResponse'
|
||||||
|
description: Successful operation
|
||||||
|
headers:
|
||||||
|
x-connection-hash:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-rate-limit-limit:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-remaining:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-reset:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-response-time:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-tfe-preserve-body:
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
x-transaction-id:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-twitter-response-tags:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
tags:
|
||||||
|
- user
|
||||||
|
|
|
||||||
4
dist/docs/openapi-3.0.yaml
vendored
4
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -106,6 +106,8 @@ paths:
|
||||||
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail
|
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail
|
||||||
/graphql/{pathQueryId}/UnfavoriteTweet:
|
/graphql/{pathQueryId}/UnfavoriteTweet:
|
||||||
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet
|
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet
|
||||||
|
/graphql/{pathQueryId}/UserByRestId:
|
||||||
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByRestId
|
||||||
/graphql/{pathQueryId}/UserByScreenName:
|
/graphql/{pathQueryId}/UserByScreenName:
|
||||||
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName
|
||||||
/graphql/{pathQueryId}/UserMedia:
|
/graphql/{pathQueryId}/UserMedia:
|
||||||
|
|
@ -114,6 +116,8 @@ paths:
|
||||||
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweets
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweets
|
||||||
/graphql/{pathQueryId}/UserTweetsAndReplies:
|
/graphql/{pathQueryId}/UserTweetsAndReplies:
|
||||||
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweetsAndReplies
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweetsAndReplies
|
||||||
|
/graphql/{pathQueryId}/UsersByRestIds:
|
||||||
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UsersByRestIds
|
||||||
/other:
|
/other:
|
||||||
$ref: ./paths/other.yaml#/paths/~1other
|
$ref: ./paths/other.yaml#/paths/~1other
|
||||||
security:
|
security:
|
||||||
|
|
|
||||||
214
dist/docs/paths/user.yaml
vendored
214
dist/docs/paths/user.yaml
vendored
|
|
@ -12,11 +12,134 @@ components:
|
||||||
$ref: ./../schemas/user.yaml#/components/schemas/UserResults
|
$ref: ./../schemas/user.yaml#/components/schemas/UserResults
|
||||||
required:
|
required:
|
||||||
- user
|
- user
|
||||||
|
UsersResponse:
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
$ref: '#/components/schemas/UsersResponseData'
|
||||||
|
required:
|
||||||
|
- data
|
||||||
|
UsersResponseData:
|
||||||
|
properties:
|
||||||
|
users:
|
||||||
|
items:
|
||||||
|
$ref: ./../schemas/user.yaml#/components/schemas/UserResults
|
||||||
|
type: array
|
||||||
|
required:
|
||||||
|
- users
|
||||||
info:
|
info:
|
||||||
title: Twitter OpenAPI
|
title: Twitter OpenAPI
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
openapi: 3.0.3
|
openapi: 3.0.3
|
||||||
paths:
|
paths:
|
||||||
|
/graphql/{pathQueryId}/UserByRestId:
|
||||||
|
get:
|
||||||
|
description: get user by rest id
|
||||||
|
operationId: getUserByRestId
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: pathQueryId
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: Lxg1V9AiIzzXEiP2c8dRnw
|
||||||
|
example: Lxg1V9AiIzzXEiP2c8dRnw
|
||||||
|
type: string
|
||||||
|
- content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
properties:
|
||||||
|
userId:
|
||||||
|
default: '44196397'
|
||||||
|
example: '44196397'
|
||||||
|
type: string
|
||||||
|
withSafetyModeUserFields:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- userId
|
||||||
|
- withSafetyModeUserFields
|
||||||
|
type: object
|
||||||
|
in: query
|
||||||
|
name: variables
|
||||||
|
required: true
|
||||||
|
- content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
properties:
|
||||||
|
creator_subscriptions_tweet_preview_api_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
hidden_profile_likes_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
highlights_tweets_tab_ui_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
responsive_web_graphql_exclude_directive_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
responsive_web_graphql_skip_user_profile_image_extensions_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
responsive_web_graphql_timeline_navigation_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
verified_phone_label_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- hidden_profile_likes_enabled
|
||||||
|
- responsive_web_graphql_exclude_directive_enabled
|
||||||
|
- verified_phone_label_enabled
|
||||||
|
- highlights_tweets_tab_ui_enabled
|
||||||
|
- creator_subscriptions_tweet_preview_api_enabled
|
||||||
|
- responsive_web_graphql_skip_user_profile_image_extensions_enabled
|
||||||
|
- responsive_web_graphql_timeline_navigation_enabled
|
||||||
|
type: object
|
||||||
|
in: query
|
||||||
|
name: features
|
||||||
|
required: true
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/UserResponse'
|
||||||
|
description: Successful operation
|
||||||
|
headers:
|
||||||
|
x-connection-hash:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-rate-limit-limit:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-remaining:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-reset:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-response-time:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-tfe-preserve-body:
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
x-transaction-id:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-twitter-response-tags:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
tags:
|
||||||
|
- user
|
||||||
/graphql/{pathQueryId}/UserByScreenName:
|
/graphql/{pathQueryId}/UserByScreenName:
|
||||||
get:
|
get:
|
||||||
description: get user by screen name
|
description: get user by screen name
|
||||||
|
|
@ -116,3 +239,94 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
tags:
|
tags:
|
||||||
- user
|
- user
|
||||||
|
/graphql/{pathQueryId}/UsersByRestIds:
|
||||||
|
get:
|
||||||
|
description: get users by rest ids
|
||||||
|
operationId: getUsersByRestIds
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: pathQueryId
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
default: GD4q8bBE2i6cqWw2iT74Gg
|
||||||
|
example: GD4q8bBE2i6cqWw2iT74Gg
|
||||||
|
type: string
|
||||||
|
- content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
properties:
|
||||||
|
userIds:
|
||||||
|
items:
|
||||||
|
default: '44196397'
|
||||||
|
example: '44196397'
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
required:
|
||||||
|
- userIds
|
||||||
|
type: object
|
||||||
|
in: query
|
||||||
|
name: variables
|
||||||
|
required: true
|
||||||
|
- content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
properties:
|
||||||
|
responsive_web_graphql_exclude_directive_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
responsive_web_graphql_skip_user_profile_image_extensions_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
responsive_web_graphql_timeline_navigation_enabled:
|
||||||
|
default: true
|
||||||
|
example: true
|
||||||
|
type: boolean
|
||||||
|
verified_phone_label_enabled:
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- responsive_web_graphql_exclude_directive_enabled
|
||||||
|
- verified_phone_label_enabled
|
||||||
|
- responsive_web_graphql_skip_user_profile_image_extensions_enabled
|
||||||
|
- responsive_web_graphql_timeline_navigation_enabled
|
||||||
|
type: object
|
||||||
|
in: query
|
||||||
|
name: features
|
||||||
|
required: true
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/UsersResponse'
|
||||||
|
description: Successful operation
|
||||||
|
headers:
|
||||||
|
x-connection-hash:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-rate-limit-limit:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-remaining:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-rate-limit-reset:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-response-time:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
x-tfe-preserve-body:
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
x-transaction-id:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
x-twitter-response-tags:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
tags:
|
||||||
|
- user
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue