diff --git a/src/config/placeholder.json b/src/config/placeholder.json index eb0d09b..1b574e2 100644 --- a/src/config/placeholder.json +++ b/src/config/placeholder.json @@ -102,6 +102,34 @@ "responsive_web_graphql_timeline_navigation_enabled": true } }, + "UserByRestId": { + "queryId": "Lxg1V9AiIzzXEiP2c8dRnw", + "variables": { + "userId": "44196397", + "withSafetyModeUserFields": true + }, + "features": { + "hidden_profile_likes_enabled": false, + "responsive_web_graphql_exclude_directive_enabled": true, + "verified_phone_label_enabled": false, + "highlights_tweets_tab_ui_enabled": true, + "creator_subscriptions_tweet_preview_api_enabled": true, + "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, + "responsive_web_graphql_timeline_navigation_enabled":true + } + }, + "UsersByRestIds": { + "queryId": "GD4q8bBE2i6cqWw2iT74Gg", + "variables": { + "userIds": ["44196397"] + }, + "features": { + "responsive_web_graphql_exclude_directive_enabled": true, + "verified_phone_label_enabled": false, + "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, + "responsive_web_graphql_timeline_navigation_enabled": true + } + }, "ProfileSpotlightsQuery": { "queryId": "9zwVLJ48lmVUk8u_Gh9DmA", "variables": { diff --git a/src/openapi/paths/user.yaml b/src/openapi/paths/user.yaml index 9b1db74..1da25d7 100644 --- a/src/openapi/paths/user.yaml +++ b/src/openapi/paths/user.yaml @@ -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"