mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
Merge branch 'main' into dev
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
commit
6394006bc1
22 changed files with 140 additions and 47 deletions
8
dist/docs/openapi-3.0.yaml
vendored
8
dist/docs/openapi-3.0.yaml
vendored
|
|
@ -137,11 +137,13 @@ security:
|
|||
servers:
|
||||
- url: https://twitter.com/i/api
|
||||
tags:
|
||||
- description: response User
|
||||
- description: Responses containing User objects.
|
||||
name: user
|
||||
- description: response User list
|
||||
- description: Responses containing List[User] objects.
|
||||
name: users
|
||||
- description: Responses containing instruction objects.
|
||||
name: user-list
|
||||
- description: response tweet
|
||||
- description: Responses containing instruction objects.
|
||||
name: tweet
|
||||
- description: post
|
||||
name: post
|
||||
|
|
|
|||
1
dist/docs/paths/other.yaml
vendored
1
dist/docs/paths/other.yaml
vendored
|
|
@ -94,7 +94,6 @@ paths:
|
|||
schema:
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/OtherResponse'
|
||||
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
||||
description: Successful operation
|
||||
tags:
|
||||
- other
|
||||
|
|
|
|||
2
dist/docs/paths/user.yaml
vendored
2
dist/docs/paths/user.yaml
vendored
|
|
@ -335,4 +335,4 @@ paths:
|
|||
schema:
|
||||
type: string
|
||||
tags:
|
||||
- user
|
||||
- users
|
||||
|
|
|
|||
1
dist/docs/schemas/typename.yaml
vendored
1
dist/docs/schemas/typename.yaml
vendored
|
|
@ -14,6 +14,7 @@ components:
|
|||
- TweetUnavailable
|
||||
- Tweet
|
||||
- User
|
||||
- UserUnavailable
|
||||
type: string
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
|
|
|
|||
25
dist/docs/schemas/user.yaml
vendored
25
dist/docs/schemas/user.yaml
vendored
|
|
@ -165,10 +165,7 @@ components:
|
|||
- entities
|
||||
- fast_followers_count
|
||||
- favourites_count
|
||||
- follow_request_sent
|
||||
- followed_by
|
||||
- followers_count
|
||||
- following
|
||||
- friends_count
|
||||
- has_custom_timelines
|
||||
- is_translator
|
||||
|
|
@ -178,12 +175,10 @@ components:
|
|||
- muting
|
||||
- name
|
||||
- normal_followers_count
|
||||
- notifications
|
||||
- pinned_tweet_ids_str
|
||||
- possibly_sensitive
|
||||
- profile_image_url_https
|
||||
- profile_interstitial_type
|
||||
- protected
|
||||
- screen_name
|
||||
- status
|
||||
- statuses_count
|
||||
|
|
@ -199,9 +194,27 @@ components:
|
|||
UserResults:
|
||||
properties:
|
||||
result:
|
||||
$ref: '#/components/schemas/User'
|
||||
$ref: '#/components/schemas/UserUnion'
|
||||
required:
|
||||
- result
|
||||
UserUnavailable:
|
||||
properties:
|
||||
__typename:
|
||||
$ref: ./typename.yaml#/components/schemas/TypeName
|
||||
reason:
|
||||
type: string
|
||||
required:
|
||||
- __typename
|
||||
- reason
|
||||
UserUnion:
|
||||
discriminator:
|
||||
mapping":
|
||||
User: '#/components/schemas/User'
|
||||
UserUnavailable: '#/components/schemas/UserUnavailable'
|
||||
propertyName: __typename
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/User'
|
||||
- $ref: '#/components/schemas/UserUnavailable'
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue