From d9082fbeeabd23bc24973f348d459b83f835fe21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Thu, 6 Jun 2024 13:17:12 +0900 Subject: [PATCH] add Actions for Bookmarking #63 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- src/config/placeholder.json | 12 ++++++++ src/openapi/paths/post.yaml | 60 +++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/src/config/placeholder.json b/src/config/placeholder.json index 441d9e5..7816714 100644 --- a/src/config/placeholder.json +++ b/src/config/placeholder.json @@ -756,6 +756,18 @@ "dark_request": false } }, + "CreateBookmark": { + "queryId": "aoDbu3RHznuiSkQ9aNM67Q", + "variables": { + "tweet_id": "1349129669258448897" + } + }, + "DeleteBookmark": { + "queryId": "Wlmlj2-xzyS1GN3a6cj-mQ", + "variables": { + "tweet_id": "1349129669258448897" + } + }, "#=====v1.1====": { "url": "https://twitter.com/i/api/1.1/" }, diff --git a/src/openapi/paths/post.yaml b/src/openapi/paths/post.yaml index 86680fd..cb9f623 100644 --- a/src/openapi/paths/post.yaml +++ b/src/openapi/paths/post.yaml @@ -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