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

add support for substituting queryId in paths

This commit is contained in:
Abdullah Atta 2023-06-12 22:57:52 +05:00
parent f9abea2fd3
commit 3fe43ba252
9 changed files with 68 additions and 19 deletions

View file

@ -4,10 +4,12 @@ info:
version: 0.0.1
paths:
/graphql/{{queryId}}/UserTweets:
/graphql/{queryId}/UserTweets:
get:
operationId: getUserTweets
description: "get user tweets"
parameters:
- $ref: "../resources/parameters.yaml#/components/parameters/queryId"
responses:
"200":
description: Successful operation
@ -18,10 +20,12 @@ paths:
tags:
- "tweet"
/graphql/{{queryId}}/UserTweetsAndReplies:
/graphql/{queryId}/UserTweetsAndReplies:
get:
operationId: getUserTweetsAndReplies
description: "get user replies tweets"
parameters:
- $ref: "../resources/parameters.yaml#/components/parameters/queryId"
responses:
"200":
description: Successful operation
@ -32,10 +36,12 @@ paths:
tags:
- "tweet"
/graphql/{{queryId}}/UserMedia:
/graphql/{queryId}/UserMedia:
get:
operationId: getUserMedia
description: "get user media tweets"
parameters:
- $ref: "../resources/parameters.yaml#/components/parameters/queryId"
responses:
"200":
description: Successful operation
@ -46,10 +52,12 @@ paths:
tags:
- "tweet"
/graphql/{{queryId}}/Likes:
/graphql/{queryId}/Likes:
get:
operationId: getLikes
description: "get user likes tweets"
parameters:
- $ref: "../resources/parameters.yaml#/components/parameters/queryId"
responses:
"200":
description: Successful operation