openapi: 3.0.3 info: title: 'API documentation' description: 'Saiba como começar a usar rapidamente a nossa API REST.' version: 1.0.0 servers: - url: 'http://localhost:8000/api' paths: '/api/users/{user_username}/tweets': get: summary: "Get a user's tweets" operationId: getAUsersTweets description: '' parameters: - in: query name: page description: 'The page number of the results to fetch.' example: 1 required: false schema: type: integer description: 'The page number of the results to fetch.' example: 1 - in: query name: per_page description: 'The number of results per page to be returned. Max 50 and the default is 10.' example: 10 required: false schema: type: integer description: 'The number of results per page to be returned. Max 50 and the default is 10.' example: 10 responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 9b73234c-47c0-411f-9a56-f88c15412cff user_id: 9b73234c-40d8-4658-9253-473565510df0 content: 'Rem est accusantium earum praesentium. Nam ipsa dolor nihil quia cumque nisi neque. Odio quasi eius in.' created_at: '2024-02-29T06:29:17.000000Z' updated_at: '2024-02-29T06:29:17.000000Z' user: id: 9b73234c-40d8-4658-9253-473565510df0 name: 'Mr. Arden Wiza' username: jhammes email: qhowell@example.net email_verified_at: '2024-02-29T06:29:17.000000Z' created_at: '2024-02-29T06:29:17.000000Z' updated_at: '2024-02-29T06:29:17.000000Z' viewer_follows: false followers_count: 0 following_count: 0 tweets_url: 'http://localhost:8000/api/api/users/jhammes/tweets' user_url: 'http://localhost:8000/api/api/users/jhammes' - id: 9b73234c-8c24-4729-a658-dc44d617902d user_id: 9b73234c-89ca-420e-9135-b72ca46cd92c content: 'Eos minima suscipit dolores animi. Mollitia libero in aperiam velit. Tenetur eligendi esse et esse necessitatibus eligendi assumenda.' created_at: '2024-02-29T06:29:17.000000Z' updated_at: '2024-02-29T06:29:17.000000Z' user: id: 9b73234c-89ca-420e-9135-b72ca46cd92c name: 'Virgil Haag' username: ramon.mraz email: agustin.luettgen@example.net email_verified_at: '2024-02-29T06:29:17.000000Z' created_at: '2024-02-29T06:29:17.000000Z' updated_at: '2024-02-29T06:29:17.000000Z' viewer_follows: false followers_count: 0 following_count: 0 tweets_url: 'http://localhost:8000/api/api/users/ramon.mraz/tweets' user_url: 'http://localhost:8000/api/api/users/ramon.mraz' links: first: '/?page=1' last: '/?page=1' prev: null next: null meta: current_page: 1 from: 1 last_page: 1 links: - url: null label: '« Previous' active: false - url: '/?page=1' label: '1' active: true - url: null label: 'Next »' active: false path: / per_page: 2 to: 2 total: 2 properties: data: type: array example: - id: 9b73234c-47c0-411f-9a56-f88c15412cff user_id: 9b73234c-40d8-4658-9253-473565510df0 content: 'Rem est accusantium earum praesentium. Nam ipsa dolor nihil quia cumque nisi neque. Odio quasi eius in.' created_at: '2024-02-29T06:29:17.000000Z' updated_at: '2024-02-29T06:29:17.000000Z' user: id: 9b73234c-40d8-4658-9253-473565510df0 name: 'Mr. Arden Wiza' username: jhammes email: qhowell@example.net email_verified_at: '2024-02-29T06:29:17.000000Z' created_at: '2024-02-29T06:29:17.000000Z' updated_at: '2024-02-29T06:29:17.000000Z' viewer_follows: false followers_count: 0 following_count: 0 tweets_url: 'http://localhost:8000/api/api/users/jhammes/tweets' user_url: 'http://localhost:8000/api/api/users/jhammes' - id: 9b73234c-8c24-4729-a658-dc44d617902d user_id: 9b73234c-89ca-420e-9135-b72ca46cd92c content: 'Eos minima suscipit dolores animi. Mollitia libero in aperiam velit. Tenetur eligendi esse et esse necessitatibus eligendi assumenda.' created_at: '2024-02-29T06:29:17.000000Z' updated_at: '2024-02-29T06:29:17.000000Z' user: id: 9b73234c-89ca-420e-9135-b72ca46cd92c name: 'Virgil Haag' username: ramon.mraz email: agustin.luettgen@example.net email_verified_at: '2024-02-29T06:29:17.000000Z' created_at: '2024-02-29T06:29:17.000000Z' updated_at: '2024-02-29T06:29:17.000000Z' viewer_follows: false followers_count: 0 following_count: 0 tweets_url: 'http://localhost:8000/api/api/users/ramon.mraz/tweets' user_url: 'http://localhost:8000/api/api/users/ramon.mraz' items: type: object properties: id: type: string example: 9b73234c-47c0-411f-9a56-f88c15412cff user_id: type: string example: 9b73234c-40d8-4658-9253-473565510df0 content: type: string example: 'Rem est accusantium earum praesentium. Nam ipsa dolor nihil quia cumque nisi neque. Odio quasi eius in.' created_at: type: string example: '2024-02-29T06:29:17.000000Z' updated_at: type: string example: '2024-02-29T06:29:17.000000Z' user: type: object properties: id: type: string example: 9b73234c-40d8-4658-9253-473565510df0 name: type: string example: 'Mr. Arden Wiza' username: type: string example: jhammes email: type: string example: qhowell@example.net email_verified_at: type: string example: '2024-02-29T06:29:17.000000Z' created_at: type: string example: '2024-02-29T06:29:17.000000Z' updated_at: type: string example: '2024-02-29T06:29:17.000000Z' viewer_follows: type: boolean example: false followers_count: type: integer example: 0 following_count: type: integer example: 0 tweets_url: type: string example: 'http://localhost:8000/api/api/users/jhammes/tweets' user_url: type: string example: 'http://localhost:8000/api/api/users/jhammes' links: type: object properties: first: type: string example: '/?page=1' last: type: string example: '/?page=1' prev: type: string example: null next: type: string example: null meta: type: object properties: current_page: type: integer example: 1 from: type: integer example: 1 last_page: type: integer example: 1 links: type: array example: - url: null label: '« Previous' active: false - url: '/?page=1' label: '1' active: true - url: null label: 'Next »' active: false items: type: object properties: url: type: string example: null label: type: string example: '« Previous' active: type: boolean example: false path: type: string example: / per_page: type: integer example: 2 to: type: integer example: 2 total: type: integer example: 2 tags: - Tweets security: [] parameters: - in: path name: user_username description: 'The username of the user.' example: thay_26 required: true schema: type: string '/api/tweets/{tweet_id}': get: summary: 'Get a tweet' operationId: getATweet description: 'Get a specific tweet by id.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: id: 9b73234e-a1cd-44ec-926b-4a0ae0bdfbe7 user_id: 9b73234e-9fbf-46a1-b2b1-fc47d29dc87d content: 'Aut blanditiis molestiae unde. Perspiciatis et tempore deleniti. Qui illum odio ipsa aut quis et in.' created_at: '2024-02-29T06:29:19.000000Z' updated_at: '2024-02-29T06:29:19.000000Z' user: id: 9b73234e-9fbf-46a1-b2b1-fc47d29dc87d name: 'Irwin Pfannerstill V' username: darryl29 email: jbartoletti@example.org email_verified_at: '2024-02-29T06:29:18.000000Z' created_at: '2024-02-29T06:29:18.000000Z' updated_at: '2024-02-29T06:29:18.000000Z' viewer_follows: false followers_count: 0 following_count: 0 tweets_url: 'http://localhost:8000/api/api/users/darryl29/tweets' user_url: 'http://localhost:8000/api/api/users/darryl29' properties: data: type: object properties: id: type: string example: 9b73234e-a1cd-44ec-926b-4a0ae0bdfbe7 user_id: type: string example: 9b73234e-9fbf-46a1-b2b1-fc47d29dc87d content: type: string example: 'Aut blanditiis molestiae unde. Perspiciatis et tempore deleniti. Qui illum odio ipsa aut quis et in.' created_at: type: string example: '2024-02-29T06:29:19.000000Z' updated_at: type: string example: '2024-02-29T06:29:19.000000Z' user: type: object properties: id: type: string example: 9b73234e-9fbf-46a1-b2b1-fc47d29dc87d name: type: string example: 'Irwin Pfannerstill V' username: type: string example: darryl29 email: type: string example: jbartoletti@example.org email_verified_at: type: string example: '2024-02-29T06:29:18.000000Z' created_at: type: string example: '2024-02-29T06:29:18.000000Z' updated_at: type: string example: '2024-02-29T06:29:18.000000Z' viewer_follows: type: boolean example: false followers_count: type: integer example: 0 following_count: type: integer example: 0 tweets_url: type: string example: 'http://localhost:8000/api/api/users/darryl29/tweets' user_url: type: string example: 'http://localhost:8000/api/api/users/darryl29' tags: - Tweets security: [] delete: summary: 'Delete a tweet' operationId: deleteATweet description: 'The token must have the following permission: `tweet:write`.' parameters: [] responses: { } tags: - Tweets parameters: - in: path name: tweet_id description: 'The ID of the tweet.' example: null required: true schema: type: string /api/feed: get: summary: 'Get user feed' operationId: getUserFeed description: "Get the latest tweets from profiles the user follows.\n\nReturns a paginated response.\n\nThe token does not require any permissions." parameters: - in: query name: page description: 'The page number of the results to fetch.' example: 1 required: false schema: type: integer description: 'The page number of the results to fetch.' example: 1 - in: query name: per_page description: 'The number of results per page to be returned. Max 50 and the default is 10.' example: 10 required: false schema: type: integer description: 'The number of results per page to be returned. Max 50 and the default is 10.' example: 10 responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 9b73234f-2366-459f-a1b6-a3886f829038 user_id: 9b73234f-1cb1-43aa-a6b4-b2a98d179bfb content: 'Rerum porro vero cupiditate natus. Sit consequuntur voluptatem quo. Sunt debitis vitae quidem similique in tempore quia.' created_at: '2024-02-29T06:29:19.000000Z' updated_at: '2024-02-29T06:29:19.000000Z' user: id: 9b73234f-1cb1-43aa-a6b4-b2a98d179bfb name: 'Ms. Novella Kub' username: adrain.reichel email: langworth.antonietta@example.org email_verified_at: '2024-02-29T06:29:19.000000Z' created_at: '2024-02-29T06:29:19.000000Z' updated_at: '2024-02-29T06:29:19.000000Z' viewer_follows: false followers_count: 0 following_count: 0 tweets_url: 'http://localhost:8000/api/api/users/adrain.reichel/tweets' user_url: 'http://localhost:8000/api/api/users/adrain.reichel' - id: 9b73234f-a851-4a9b-a603-67f3acf1015a user_id: 9b73234f-a321-4e77-b0b0-d90c6fc51dfe content: 'Rerum non sit quos voluptatem ex. Vero minima molestias id iste alias. Nobis quas ipsum aliquam magni et nisi.' created_at: '2024-02-29T06:29:19.000000Z' updated_at: '2024-02-29T06:29:19.000000Z' user: id: 9b73234f-a321-4e77-b0b0-d90c6fc51dfe name: 'Shanie Kuphal' username: balistreri.verda email: heaney.ethan@example.net email_verified_at: '2024-02-29T06:29:19.000000Z' created_at: '2024-02-29T06:29:19.000000Z' updated_at: '2024-02-29T06:29:19.000000Z' viewer_follows: false followers_count: 0 following_count: 0 tweets_url: 'http://localhost:8000/api/api/users/balistreri.verda/tweets' user_url: 'http://localhost:8000/api/api/users/balistreri.verda' links: first: '/?page=1' last: '/?page=1' prev: null next: null meta: current_page: 1 from: 1 last_page: 1 links: - url: null label: '« Previous' active: false - url: '/?page=1' label: '1' active: true - url: null label: 'Next »' active: false path: / per_page: 2 to: 2 total: 2 properties: data: type: array example: - id: 9b73234f-2366-459f-a1b6-a3886f829038 user_id: 9b73234f-1cb1-43aa-a6b4-b2a98d179bfb content: 'Rerum porro vero cupiditate natus. Sit consequuntur voluptatem quo. Sunt debitis vitae quidem similique in tempore quia.' created_at: '2024-02-29T06:29:19.000000Z' updated_at: '2024-02-29T06:29:19.000000Z' user: id: 9b73234f-1cb1-43aa-a6b4-b2a98d179bfb name: 'Ms. Novella Kub' username: adrain.reichel email: langworth.antonietta@example.org email_verified_at: '2024-02-29T06:29:19.000000Z' created_at: '2024-02-29T06:29:19.000000Z' updated_at: '2024-02-29T06:29:19.000000Z' viewer_follows: false followers_count: 0 following_count: 0 tweets_url: 'http://localhost:8000/api/api/users/adrain.reichel/tweets' user_url: 'http://localhost:8000/api/api/users/adrain.reichel' - id: 9b73234f-a851-4a9b-a603-67f3acf1015a user_id: 9b73234f-a321-4e77-b0b0-d90c6fc51dfe content: 'Rerum non sit quos voluptatem ex. Vero minima molestias id iste alias. Nobis quas ipsum aliquam magni et nisi.' created_at: '2024-02-29T06:29:19.000000Z' updated_at: '2024-02-29T06:29:19.000000Z' user: id: 9b73234f-a321-4e77-b0b0-d90c6fc51dfe name: 'Shanie Kuphal' username: balistreri.verda email: heaney.ethan@example.net email_verified_at: '2024-02-29T06:29:19.000000Z' created_at: '2024-02-29T06:29:19.000000Z' updated_at: '2024-02-29T06:29:19.000000Z' viewer_follows: false followers_count: 0 following_count: 0 tweets_url: 'http://localhost:8000/api/api/users/balistreri.verda/tweets' user_url: 'http://localhost:8000/api/api/users/balistreri.verda' items: type: object properties: id: type: string example: 9b73234f-2366-459f-a1b6-a3886f829038 user_id: type: string example: 9b73234f-1cb1-43aa-a6b4-b2a98d179bfb content: type: string example: 'Rerum porro vero cupiditate natus. Sit consequuntur voluptatem quo. Sunt debitis vitae quidem similique in tempore quia.' created_at: type: string example: '2024-02-29T06:29:19.000000Z' updated_at: type: string example: '2024-02-29T06:29:19.000000Z' user: type: object properties: id: type: string example: 9b73234f-1cb1-43aa-a6b4-b2a98d179bfb name: type: string example: 'Ms. Novella Kub' username: type: string example: adrain.reichel email: type: string example: langworth.antonietta@example.org email_verified_at: type: string example: '2024-02-29T06:29:19.000000Z' created_at: type: string example: '2024-02-29T06:29:19.000000Z' updated_at: type: string example: '2024-02-29T06:29:19.000000Z' viewer_follows: type: boolean example: false followers_count: type: integer example: 0 following_count: type: integer example: 0 tweets_url: type: string example: 'http://localhost:8000/api/api/users/adrain.reichel/tweets' user_url: type: string example: 'http://localhost:8000/api/api/users/adrain.reichel' links: type: object properties: first: type: string example: '/?page=1' last: type: string example: '/?page=1' prev: type: string example: null next: type: string example: null meta: type: object properties: current_page: type: integer example: 1 from: type: integer example: 1 last_page: type: integer example: 1 links: type: array example: - url: null label: '« Previous' active: false - url: '/?page=1' label: '1' active: true - url: null label: 'Next »' active: false items: type: object properties: url: type: string example: null label: type: string example: '« Previous' active: type: boolean example: false path: type: string example: / per_page: type: integer example: 2 to: type: integer example: 2 total: type: integer example: 2 tags: - Tweets /api/tweets: post: summary: 'Create a tweet' operationId: createATweet description: "Post a new tweet to the logged in user's account.\n\nThe token must have the following permission: `tweet:write`." parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: id: 9b732350-5279-4c86-8dec-008d91932f25 user_id: 9b732350-4be1-4adb-8f96-bd5f786a4fcc content: 'Quam ut sunt laudantium sint vero non est eos. Delectus molestiae qui autem dolorem quam.' created_at: '2024-02-29T06:29:20.000000Z' updated_at: '2024-02-29T06:29:20.000000Z' user: id: 9b732350-4be1-4adb-8f96-bd5f786a4fcc name: 'Isabella Smith' username: ctremblay email: lkoelpin@example.org email_verified_at: '2024-02-29T06:29:19.000000Z' created_at: '2024-02-29T06:29:20.000000Z' updated_at: '2024-02-29T06:29:20.000000Z' viewer_follows: false followers_count: 0 following_count: 0 tweets_url: 'http://localhost:8000/api/api/users/ctremblay/tweets' user_url: 'http://localhost:8000/api/api/users/ctremblay' properties: data: type: object properties: id: type: string example: 9b732350-5279-4c86-8dec-008d91932f25 user_id: type: string example: 9b732350-4be1-4adb-8f96-bd5f786a4fcc content: type: string example: 'Quam ut sunt laudantium sint vero non est eos. Delectus molestiae qui autem dolorem quam.' created_at: type: string example: '2024-02-29T06:29:20.000000Z' updated_at: type: string example: '2024-02-29T06:29:20.000000Z' user: type: object properties: id: type: string example: 9b732350-4be1-4adb-8f96-bd5f786a4fcc name: type: string example: 'Isabella Smith' username: type: string example: ctremblay email: type: string example: lkoelpin@example.org email_verified_at: type: string example: '2024-02-29T06:29:19.000000Z' created_at: type: string example: '2024-02-29T06:29:20.000000Z' updated_at: type: string example: '2024-02-29T06:29:20.000000Z' viewer_follows: type: boolean example: false followers_count: type: integer example: 0 following_count: type: integer example: 0 tweets_url: type: string example: 'http://localhost:8000/api/api/users/ctremblay/tweets' user_url: type: string example: 'http://localhost:8000/api/api/users/ctremblay' tags: - Tweets requestBody: required: true content: application/json: schema: type: object properties: content: type: string description: 'The tweet content. Max 140 caracteres.' example: 'Lorem ipsum dolor sit...' required: - content '/api/users/{user_username}': get: summary: 'Get a user' operationId: getAUser description: 'Provides publicly available information about some user.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: id: 9b73234b-bd23-4aea-8954-bd51152f4e6b name: 'Leonora Reilly V' username: leland91 email: rudolph02@example.com email_verified_at: '2024-02-29T06:29:16.000000Z' created_at: '2024-02-29T06:29:17.000000Z' updated_at: '2024-02-29T06:29:17.000000Z' viewer_follows: false followers_count: 0 following_count: 0 tweets_url: 'http://localhost:8000/api/api/users/leland91/tweets' properties: data: type: object properties: id: type: string example: 9b73234b-bd23-4aea-8954-bd51152f4e6b name: type: string example: 'Leonora Reilly V' username: type: string example: leland91 email: type: string example: rudolph02@example.com email_verified_at: type: string example: '2024-02-29T06:29:16.000000Z' created_at: type: string example: '2024-02-29T06:29:17.000000Z' updated_at: type: string example: '2024-02-29T06:29:17.000000Z' viewer_follows: type: boolean example: false followers_count: type: integer example: 0 following_count: type: integer example: 0 tweets_url: type: string example: 'http://localhost:8000/api/api/users/leland91/tweets' tags: - Users security: [] parameters: - in: path name: user_username description: 'The username of the user.' example: thay_26 required: true schema: type: string '/api/users/{user_username}/followers': get: summary: 'List followers of a user' operationId: listFollowersOfAUser description: "Lists the people following the specified user.\n\nReturns a paginated response." parameters: - in: query name: page description: 'The page number of the results to fetch.' example: 1 required: false schema: type: integer description: 'The page number of the results to fetch.' example: 1 - in: query name: per_page description: 'The number of results per page to be returned. Max 50 and the default is 10.' example: 10 required: false schema: type: integer description: 'The number of results per page to be returned. Max 50 and the default is 10.' example: 10 responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 9b73234d-1f87-4fb5-a3e3-e3fa185eea0b name: 'Lempi Feil' username: dooley.patricia email: bella.okuneva@example.org email_verified_at: '2024-02-29T06:29:17.000000Z' created_at: '2024-02-29T06:29:18.000000Z' updated_at: '2024-02-29T06:29:18.000000Z' - id: 9b73234d-5ee8-4143-8090-be3bca41d5ba name: 'Mr. Abraham Bogan' username: melvina95 email: rspencer@example.com email_verified_at: '2024-02-29T06:29:18.000000Z' created_at: '2024-02-29T06:29:18.000000Z' updated_at: '2024-02-29T06:29:18.000000Z' links: first: '/?page=1' last: '/?page=1' prev: null next: null meta: current_page: 1 from: 1 last_page: 1 links: - url: null label: '« Previous' active: false - url: '/?page=1' label: '1' active: true - url: null label: 'Next »' active: false path: / per_page: 2 to: 2 total: 2 properties: data: type: array example: - id: 9b73234d-1f87-4fb5-a3e3-e3fa185eea0b name: 'Lempi Feil' username: dooley.patricia email: bella.okuneva@example.org email_verified_at: '2024-02-29T06:29:17.000000Z' created_at: '2024-02-29T06:29:18.000000Z' updated_at: '2024-02-29T06:29:18.000000Z' - id: 9b73234d-5ee8-4143-8090-be3bca41d5ba name: 'Mr. Abraham Bogan' username: melvina95 email: rspencer@example.com email_verified_at: '2024-02-29T06:29:18.000000Z' created_at: '2024-02-29T06:29:18.000000Z' updated_at: '2024-02-29T06:29:18.000000Z' items: type: object properties: id: type: string example: 9b73234d-1f87-4fb5-a3e3-e3fa185eea0b name: type: string example: 'Lempi Feil' username: type: string example: dooley.patricia email: type: string example: bella.okuneva@example.org email_verified_at: type: string example: '2024-02-29T06:29:17.000000Z' created_at: type: string example: '2024-02-29T06:29:18.000000Z' updated_at: type: string example: '2024-02-29T06:29:18.000000Z' links: type: object properties: first: type: string example: '/?page=1' last: type: string example: '/?page=1' prev: type: string example: null next: type: string example: null meta: type: object properties: current_page: type: integer example: 1 from: type: integer example: 1 last_page: type: integer example: 1 links: type: array example: - url: null label: '« Previous' active: false - url: '/?page=1' label: '1' active: true - url: null label: 'Next »' active: false items: type: object properties: url: type: string example: null label: type: string example: '« Previous' active: type: boolean example: false path: type: string example: / per_page: type: integer example: 2 to: type: integer example: 2 total: type: integer example: 2 tags: - Users security: [] parameters: - in: path name: user_username description: 'The username of the user.' example: thay_26 required: true schema: type: string '/api/users/{user_username}/following': get: summary: 'List the people a user follows' operationId: listThePeopleAUserFollows description: "Lists the people who the specified user follows.\n\nReturns a paginated response." parameters: - in: query name: page description: 'The page number of the results to fetch.' example: 1 required: false schema: type: integer description: 'The page number of the results to fetch.' example: 1 - in: query name: per_page description: 'The number of results per page to be returned. Max 50 and the default is 10.' example: 10 required: false schema: type: integer description: 'The number of results per page to be returned. Max 50 and the default is 10.' example: 10 responses: 200: description: '' content: application/json: schema: type: object example: data: - id: 9b73234e-016c-4978-a25e-bbebf9894326 name: 'Eryn Morissette' username: tfeest email: kiehn.issac@example.com email_verified_at: '2024-02-29T06:29:18.000000Z' created_at: '2024-02-29T06:29:18.000000Z' updated_at: '2024-02-29T06:29:18.000000Z' - id: 9b73234e-591e-45c8-a710-a295005bfe21 name: 'Prof. Prudence Hegmann' username: sbartell email: wilson61@example.org email_verified_at: '2024-02-29T06:29:18.000000Z' created_at: '2024-02-29T06:29:18.000000Z' updated_at: '2024-02-29T06:29:18.000000Z' links: first: '/?page=1' last: '/?page=1' prev: null next: null meta: current_page: 1 from: 1 last_page: 1 links: - url: null label: '« Previous' active: false - url: '/?page=1' label: '1' active: true - url: null label: 'Next »' active: false path: / per_page: 2 to: 2 total: 2 properties: data: type: array example: - id: 9b73234e-016c-4978-a25e-bbebf9894326 name: 'Eryn Morissette' username: tfeest email: kiehn.issac@example.com email_verified_at: '2024-02-29T06:29:18.000000Z' created_at: '2024-02-29T06:29:18.000000Z' updated_at: '2024-02-29T06:29:18.000000Z' - id: 9b73234e-591e-45c8-a710-a295005bfe21 name: 'Prof. Prudence Hegmann' username: sbartell email: wilson61@example.org email_verified_at: '2024-02-29T06:29:18.000000Z' created_at: '2024-02-29T06:29:18.000000Z' updated_at: '2024-02-29T06:29:18.000000Z' items: type: object properties: id: type: string example: 9b73234e-016c-4978-a25e-bbebf9894326 name: type: string example: 'Eryn Morissette' username: type: string example: tfeest email: type: string example: kiehn.issac@example.com email_verified_at: type: string example: '2024-02-29T06:29:18.000000Z' created_at: type: string example: '2024-02-29T06:29:18.000000Z' updated_at: type: string example: '2024-02-29T06:29:18.000000Z' links: type: object properties: first: type: string example: '/?page=1' last: type: string example: '/?page=1' prev: type: string example: null next: type: string example: null meta: type: object properties: current_page: type: integer example: 1 from: type: integer example: 1 last_page: type: integer example: 1 links: type: array example: - url: null label: '« Previous' active: false - url: '/?page=1' label: '1' active: true - url: null label: 'Next »' active: false items: type: object properties: url: type: string example: null label: type: string example: '« Previous' active: type: boolean example: false path: type: string example: / per_page: type: integer example: 2 to: type: integer example: 2 total: type: integer example: 2 tags: - Users security: [] parameters: - in: path name: user_username description: 'The username of the user.' example: thay_26 required: true schema: type: string /api/me: get: summary: 'Get the authenticated user' operationId: getTheAuthenticatedUser description: "Returns the currently logged-in user's data.\n\nThe token does not require any permissions." parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: data: id: 9b732351-1e60-45b8-aa71-b88f10bf295f name: 'Prof. Alana Fahey III' username: edison.ortiz email: yasmeen.friesen@example.org email_verified_at: '2024-02-29T06:29:20.000000Z' created_at: '2024-02-29T06:29:20.000000Z' updated_at: '2024-02-29T06:29:20.000000Z' viewer_follows: false followers_count: 0 following_count: 0 tweets_url: 'http://localhost:8000/api/api/users/edison.ortiz/tweets' properties: data: type: object properties: id: type: string example: 9b732351-1e60-45b8-aa71-b88f10bf295f name: type: string example: 'Prof. Alana Fahey III' username: type: string example: edison.ortiz email: type: string example: yasmeen.friesen@example.org email_verified_at: type: string example: '2024-02-29T06:29:20.000000Z' created_at: type: string example: '2024-02-29T06:29:20.000000Z' updated_at: type: string example: '2024-02-29T06:29:20.000000Z' viewer_follows: type: boolean example: false followers_count: type: integer example: 0 following_count: type: integer example: 0 tweets_url: type: string example: 'http://localhost:8000/api/api/users/edison.ortiz/tweets' tags: - Users patch: summary: 'Update the authenticated user' operationId: updateTheAuthenticatedUser description: "Updates the currently logged-in user's data.\n\nThe token must have the following permission: `profile:write`." parameters: [] responses: { } tags: - Users requestBody: required: false content: application/json: schema: type: object properties: email: type: string description: 'Must be a valid email address.' example: jamaal37@example.net username: type: string description: 'Must contain only letters, numbers, dashes and underscores. Must be at least 4 characters. Must not be greater than 20 characters.' example: rxohjamet name: type: string description: 'Must be at least 1 character. Must not be greater than 50 characters.' example: vijjaktdsxspsaafkqniyx delete: summary: 'Delete the authenticated user' operationId: deleteTheAuthenticatedUser description: "Delete the currently logged-in user account.\n\nThe token must have the following permission: `profile:write`." parameters: [] responses: { } tags: - Users '/api/me/following/{user_username}': get: summary: 'Check if the authenticated user follows a user' operationId: checkIfTheAuthenticatedUserFollowsAUser description: "Responds with 200 status code if the authenticated user follows the specified user and 404 if not.\n\nThe token must have the following permission: `followers:read`." parameters: [] responses: 200: description: 'if the person is followed by the authenticated user' content: application/json: schema: type: boolean example: true 404: description: 'if the person is not followed by the authenticated user' content: application/json: schema: type: boolean example: false tags: - Users put: summary: 'Follow another user' operationId: followAnotherUser description: "Makes the logged in user follow another user.\n\nThe token must have the following permission: `followers:write`." parameters: [] responses: { } tags: - Users delete: summary: 'Unfollow a user' operationId: unfollowAUser description: "Makes the logged in user unfollow a user.\n\nThe token must have the following permission: `followers:write`." parameters: [] responses: { } tags: - Users parameters: - in: path name: user_username description: 'The username of the user.' example: thay_26 required: true schema: type: string tags: - name: Tweets description: 'Returns a paginated response.' - name: Users description: "\nAPIs for managing users." components: securitySchemes: default: type: http scheme: bearer description: 'You can retrieve your token by visiting your settings and clicking Generate API token.' security: - default: []