1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-12 16:10:26 +01:00

add Actions for Bookmarking #63

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-06-06 13:17:12 +09:00
parent f0e37687a4
commit d9082fbeea
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
2 changed files with 72 additions and 0 deletions

View file

@ -100,6 +100,38 @@ paths:
tags:
- "post"
/graphql/{pathQueryId}/CreateBookmark:
post:
operationId: postCreateBookmark
description: create Bookmark
responses:
"200":
description: Successful operation
content:
application/json:
schema:
oneOf:
- $ref: "#/components/schemas/CreateBookmarkResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "post"
/graphql/{pathQueryId}/DeleteBookmark:
post:
operationId: postDeleteBookmark
description: delete Bookmark
responses:
"200":
description: Successful operation
content:
application/json:
schema:
oneOf:
- $ref: "#/components/schemas/DeleteBookmarkResponse"
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
tags:
- "post"
components:
schemas:
FavoriteTweetResponseData:
@ -256,3 +288,31 @@ components:
properties:
tweet_results:
type: object
CreateBookmarkResponse:
required:
- "data"
properties:
data:
$ref: "#/components/schemas/CreateBookmarkResponseData"
CreateBookmarkResponseData:
required:
- "tweet_bookmark_put"
properties:
tweet_bookmark_put:
type: string
DeleteBookmarkResponse:
required:
- "data"
properties:
data:
$ref: "#/components/schemas/DeleteBookmarkResponseData"
DeleteBookmarkResponseData:
required:
- "tweet_bookmark_delete"
properties:
tweet_bookmark_delete:
type: string