1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00

add UserByRestId and UsersByRestIds paths

This commit is contained in:
Erika 2023-07-09 18:06:43 +01:00
parent 24b04344f1
commit 48c2e11b11
2 changed files with 72 additions and 0 deletions

View file

@ -18,6 +18,34 @@ paths:
tags:
- "user"
/graphql/{pathQueryId}/UserByRestId:
get:
operationId: getUserByRestId
description: "get user by rest id"
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/UserResponse"
tags:
- "user"
/graphql/{pathQueryId}/UsersByRestIds:
get:
operationId: getUsersByRestIds
description: "get users by rest ids"
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/UsersResponse"
tags:
- "user"
components:
schemas:
UserResponse:
@ -33,3 +61,19 @@ components:
properties:
user:
$ref: "./../schemas/user.yaml#/components/schemas/UserResults"
UsersResponse:
required:
- "data"
properties:
data:
$ref: "#/components/schemas/UsersResponseData"
UsersResponseData:
required:
- "users"
properties:
users:
type: array
items:
$ref: "./../schemas/user.yaml#/components/schemas/UserResults"