mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 23:50:26 +01:00
build
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
6fbfc323b3
commit
3dbdd17fbb
74 changed files with 16 additions and 9401 deletions
123
dist/compatible/paths/profile.yaml
vendored
Normal file
123
dist/compatible/paths/profile.yaml
vendored
Normal file
|
|
@ -0,0 +1,123 @@
|
|||
components:
|
||||
schemas:
|
||||
ProfileResponse:
|
||||
properties:
|
||||
data:
|
||||
$ref: '#/components/schemas/ProfileResponseData'
|
||||
required:
|
||||
- data
|
||||
ProfileResponseData:
|
||||
properties:
|
||||
user_result_by_screen_name:
|
||||
$ref: '#/components/schemas/UserResultByScreenName'
|
||||
required:
|
||||
- user_result_by_screen_name
|
||||
UserResultByScreenName:
|
||||
properties:
|
||||
id:
|
||||
pattern: ^[0-9a-zA-Z]+$
|
||||
type: string
|
||||
result:
|
||||
$ref: '#/components/schemas/UserResultByScreenNameResult'
|
||||
required:
|
||||
- id
|
||||
- result
|
||||
UserResultByScreenNameLegacy:
|
||||
properties:
|
||||
blocked_by:
|
||||
type: boolean
|
||||
blocking:
|
||||
type: boolean
|
||||
followed_by:
|
||||
type: boolean
|
||||
following:
|
||||
type: boolean
|
||||
name:
|
||||
type: string
|
||||
protected:
|
||||
type: boolean
|
||||
screen_name:
|
||||
type: string
|
||||
UserResultByScreenNameResult:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./../schemas/typename.yaml#/components/schemas/TypeName
|
||||
id:
|
||||
pattern: ^[0-9a-zA-Z=]+$
|
||||
type: string
|
||||
legacy:
|
||||
$ref: '#/components/schemas/UserResultByScreenNameLegacy'
|
||||
profilemodules:
|
||||
type: object
|
||||
rest_id:
|
||||
pattern: ^[0-9]+$
|
||||
type: string
|
||||
required:
|
||||
- __typename
|
||||
- id
|
||||
- legacy
|
||||
- profilemodules
|
||||
- rest_id
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
openapi: 3.0.3
|
||||
paths:
|
||||
/graphql/{pathQueryId}/ProfileSpotlightsQuery:
|
||||
get:
|
||||
description: get user by screen name
|
||||
operationId: getProfileSpotlightsQuery
|
||||
parameters:
|
||||
- in: path
|
||||
name: pathQueryId
|
||||
required: true
|
||||
schema:
|
||||
default: 9zwVLJ48lmVUk8u_Gh9DmA
|
||||
example: 9zwVLJ48lmVUk8u_Gh9DmA
|
||||
type: string
|
||||
- in: query
|
||||
name: variables
|
||||
required: true
|
||||
schema:
|
||||
default: '{"screen_name": "elonmusk"}'
|
||||
example: '{"screen_name": "elonmusk"}'
|
||||
type: string
|
||||
- in: query
|
||||
name: features
|
||||
required: true
|
||||
schema:
|
||||
default: '{}'
|
||||
example: '{}'
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ProfileResponse'
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue