1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 15:40:26 +01:00
twitter-openapi/dist/docs/paths/profile.yaml
ふぁ 31d7235baf
build
Signed-off-by: ふぁ <yuki@yuki0311.com>
2023-07-31 18:16:41 +09:00

134 lines
3.4 KiB
YAML

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: ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$
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:
additionalProperties: true
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
- content:
application/json:
schema:
properties:
screen_name:
default: elonmusk
example: elonmusk
type: string
required:
- screen_name
type: object
in: query
name: variables
required: true
- content:
application/json:
schema:
properties: {}
type: object
in: query
name: features
required: true
responses:
'200':
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/ProfileResponse'
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
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