mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
add builder
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
9052b3a16a
commit
26908878c1
31 changed files with 2886 additions and 1549 deletions
36
src/openapi/path/user.yaml
Normal file
36
src/openapi/path/user.yaml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
openapi: 3.0.3
|
||||
info:
|
||||
title: Twitter OpenAPI
|
||||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/{{UserByScreenNameQuery}}/UserByScreenName:
|
||||
get:
|
||||
operationId: getUserByScreenName
|
||||
description: "get user by screen name"
|
||||
responses:
|
||||
"200":
|
||||
description: Successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UserResponse"
|
||||
tags:
|
||||
- "user"
|
||||
- "graphql"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
UserResponse:
|
||||
required:
|
||||
- "data"
|
||||
properties:
|
||||
data:
|
||||
$ref: "#/components/schemas/UserResponseData"
|
||||
|
||||
UserResponseData:
|
||||
required:
|
||||
- "user"
|
||||
properties:
|
||||
user:
|
||||
$ref: "./../schemas/user.yaml#/components/schemas/UserResults"
|
||||
Loading…
Add table
Add a link
Reference in a new issue