mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-12 08:00:27 +01:00
fix typo
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
f08d92f949
commit
133cc17ed3
15 changed files with 13 additions and 13 deletions
|
|
@ -1,84 +0,0 @@
|
|||
openapi: 3.0.3
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/{{ProfileSpotlightsQueryQuery}}/ProfileSpotlightsQuery:
|
||||
get:
|
||||
operationId: getProfileSpotlightsQuery
|
||||
description: "get user by screen name"
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ProfileResponse"
|
||||
tags:
|
||||
- "user"
|
||||
- "graphql"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
ProfileResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/ProfileResponseData"
|
||||
|
||||
ProfileResponseData:
|
||||
required:
|
||||
- "user_result_by_screen_name"
|
||||
properties:
|
||||
user_result_by_screen_name:
|
||||
$ref: "#/components/schemas/UserResultByScreenName"
|
||||
|
||||
UserResultByScreenName:
|
||||
required:
|
||||
- "id"
|
||||
- "result"
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
pattern: "^[0-9a-zA-Z]+$"
|
||||
result:
|
||||
$ref: "#/components/schemas/UserResultByScreenNameResult"
|
||||
|
||||
UserResultByScreenNameResult:
|
||||
required:
|
||||
- "__typename"
|
||||
- "id"
|
||||
- "legacy"
|
||||
- "profilemodules"
|
||||
- "rest_id"
|
||||
properties:
|
||||
__typename:
|
||||
$ref: "./../schemas/typename.yaml#/components/schemas/TypeName" # User
|
||||
id:
|
||||
type: string
|
||||
pattern: "^[0-9a-zA-Z=]+$"
|
||||
legacy:
|
||||
$ref: "#/components/schemas/UserResultByScreenNameLegacy"
|
||||
profilemodules:
|
||||
type: object # todo
|
||||
rest_id:
|
||||
type: string
|
||||
pattern: "^[0-9]+$"
|
||||
UserResultByScreenNameLegacy:
|
||||
properties:
|
||||
blocking:
|
||||
type: boolean
|
||||
blocked_by:
|
||||
type: boolean
|
||||
protected:
|
||||
type: boolean
|
||||
following:
|
||||
type: boolean
|
||||
followed_by:
|
||||
type: boolean
|
||||
name:
|
||||
type: string
|
||||
screen_name:
|
||||
type: string
|
||||
Loading…
Add table
Add a link
Reference in a new issue