1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00
twitter-openapi/dist/docs/paths/user.yaml
ふぁ 705fdc83ec
build
Signed-off-by: ふぁ <yuki@yuki0311.com>
2023-06-13 15:16:59 +09:00

159 lines
4.5 KiB
YAML

components:
schemas:
UserResponse:
properties:
data:
$ref: '#/components/schemas/UserResponseData'
required:
- data
UserResponseData:
properties:
user:
$ref: ./../schemas/user.yaml#/components/schemas/UserResults
required:
- user
info:
title: Twitter OpenAPI
version: 0.0.1
openapi: 3.0.3
paths:
/graphql/{pathQueryId}/UserByScreenName:
get:
description: get user by screen name
operationId: getUserByScreenName
parameters:
- in: path
name: pathQueryId
required: true
schema:
default: sLVLhk0bGj3MVFEKTdax1w
example: sLVLhk0bGj3MVFEKTdax1w
type: string
- content:
application/json:
required:
- s
- L
- V
- L
- h
- k
- '0'
- b
- G
- j
- '3'
- M
- V
- F
- E
- K
- T
- d
- a
- x
- '1'
- w
schema:
default: sLVLhk0bGj3MVFEKTdax1w
example: sLVLhk0bGj3MVFEKTdax1w
type: string
in: query
name: queryId
required: true
- content:
application/json:
required:
- screen_name
- withSafetyModeUserFields
schema:
properties:
screen_name:
default: elonmusk
example: elonmusk
type: string
withSafetyModeUserFields:
default: true
example: true
type: boolean
required:
- screen_name
- withSafetyModeUserFields
type: object
in: query
name: variables
required: true
- content:
application/json:
required:
- blue_business_profile_image_shape_enabled
- 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
schema:
properties:
blue_business_profile_image_shape_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:
- blue_business_profile_image_shape_enabled
- 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/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