Endpoint: /users
Parâmetro | Tipo | Descrição |
---|---|---|
Nenhum | Nenhum | Nenhum |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
{ "id": "7e1d7dd7-919e-4cc2-909d-87fa13187cea", "name": "Jhon Doe", "email": "[email protected]" }, { "id": "d5e92e97-0953-4824-8f47-7965a45730ed", "name": "Mary Christmas", "email": "[email protected]" },
Endpoint: /users/{id}
Parâmetro | Tipo | Descrição |
---|---|---|
id | string | Identificador único do usuário |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
{ "id": "7e1d7dd7-919e-4cc2-909d-87fa13187cea", "name": "Jhon Doe", "email": "[email protected]" }
Endpoint: /users/posts/{id}
Parâmetro | Tipo | Descrição |
---|---|---|
id | string | Identificador único do usuário |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
{ "user": { "id": "56abffcf-c40e-40ae-9e7c-82337aa7031d", "name": "Lorenzo", "email": "[email protected]" }, "followers": 2, "images": [ { "id": "f03fdc66-05b2-4570-92ad-c1ec52adf663", "created_at": "Tue Mar 14 2023 18:56:20 GMT+0000 (Coordinated Universal Time)", "name": "image1.png", "user_id": "56abffcf-c40e-40ae-9e7c-82337aa7031d", "url": "https://url.com/1678820179910.png", "text": "Teste" } ], "songs": [ { "id": "5850f50c-8d47-4ebb-9690-702aee0f5de9", "created_at": "Tue Mar 14 2023 18:59:39 GMT+0000 (Coordinated Universal Time)", "name": "song.mp3", "user_id": "56abffcf-c40e-40ae-9e7c-82337aa7031d", "text": "Hey yah!", "url": "https://url.com/1678820376382.mp3" } ] }
Endpoint: /users/validate
Parâmetro | Tipo | Descrição |
---|---|---|
nenhum | nenhum | nenhum |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
{ "message": "User Validated" }
Endpoint: /users
{ "name": "Jhon Doe", "email": "[email protected]" }
{ "id": "oa1a1836-4cef-4b20-8931-b8fc143a0efd", "name": "Jhon Doe", "email": "[email protected]" }
Endpoint: /users/{id}
Parâmetro | Tipo | Descrição |
---|---|---|
id | string | Identificador único do usuário |
{ "name": "Jhon doe", "email": "[email protected]", "password": "123456ab" }
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
{ "id": "ea1a1836-4cef-4b20-8931-b8fc143a0efd", "name": "Jhon doe", "email": "[email protected]" }
Endpoint: /users/login
{ "email": "[email protected]", "password": "123456ab" }
{ "id": "56abffcf-c40e-40ae-9e7c-82337aa7031d", "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webIBIDM" }
Endpoint: /users/{id}
Parâmetro | Tipo | Descrição |
---|---|---|
id | string | Identificador único do usuário |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
{ "status": "ok", "message": "user deleted" }
Endpoint: /users/search/{page}
Parâmetro | Tipo | Descrição |
---|---|---|
id | string | ID do usuário a ser verificado |
{ "searchValue": "Jhon" }
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
{ "nextPage": false, "prevPage": false, "results": [ { "id": "5987de46-67b6-47e4-85e1-08da15eb7182", "name": "Jhon Doe" }, ] }
Endpoint: /api/images
Parâmetro | Tipo | Descrição |
---|---|---|
nenhum | nenhum | nenhum |
{ "image": "image.png", "text": "test upload" }
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
{ "message": "Uploaded", "Image": { "id": "7084908a-84a4-446b-8112-133e3fe7d24e", "created_at": "Thu Mar 09 2023 17:22:48 GMT-0300 (Horário Padrão de Brasília)", "name": "image.png", "user_id": "924cb997-3b34-4747-b490-1a81fbcd15b7", "url": "https://url.com/1678393367741.png", "text": "new image" } }
Endpoint: /images/get
<th>Tipo</th>
<th>Descrição</th>
</tr>
<tr>
<td>Nenhum</td>
<td>Nenhum</td>
<td>Nenhum</td>
</tr>
Parâmetro |
---|
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
[ { "id": "d8f34943-9475-49cd-891c-4b3172115156", "created_at": "Fri Mar 10 2023 18:28:05 GMT+0000 (Coordinated Universal Time)", "name": "iamge.png", "user_id": "5987de46-67b6-47e4-85e1-08da15eb7185", "url": "https://url.com/1678472883600.png", "text": "Testando upload de fotos", "user": { "id": "5987de46-67b6-47e4-85e1-08da15eb7185", "name": "Jhon Doe", "email": "[email protected]" } }, { "id": "f03fdc66-05b2-4570-92ad-c1ec52adf663", "created_at": "Tue Mar 14 2023 18:56:20 GMT+0000 (Coordinated Universal Time)", "name": "image.png", "user_id": "56abffcf-c40e-40ae-9e7c-82337aa7031d", "url": "https://url.com/1678820179910.png", "text": "Teste", "user": { "id": "56abffcf-c40e-40ae-9e7c-82337aa7031d", "name": "Jhon Down", "email": "[email protected]" } } ]
Endpoint: /songs
Parâmetro | Tipo | Descrição |
---|---|---|
nenhum | nenhum | nenhum |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
{ "song": song.mp3, "text": "new song" }
{ "message": "Uploaded", "Song": { "id": "35aef4c9-ba84-4dcf-b4aa-beb9204ac331", "created_at": "Thu Mar 09 2023 17:19:26 GMT-0300 (Horário Padrão de Brasília)", "name": "song.mp3", "user_id":"924cb997-3b34-4747-b490-1a81fbcd15b7", "text": "new song", "url": "https://url.com/1678393165647.mp3" } }
Endpoint: /api/songs
Parâmetro | Tipo | Descrição |
---|---|---|
Nenhum | Nenhum | Nenhum |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
[ { "id": "f6318f61-53e7-4940-a930-100a245184cc", "created_at": "Fri Mar 10 2023 18:26:15 GMT+0000 (Coordinated Universal Time)", "name": "song.mp3", "user_id": "5987de46-67b6-47e4-85e1-08da15eb7185", "text": "My new song", "url": "https://url.com/1678820376385.mp3", "user": { "id": "5987de46-67b6-47e4-85e1-08da15eb7185", "name": "Julio Cesar", "email": "[email protected]" } }, { "id": "5850f50c-8d47-4ebb-9690-702aee0f5de9", "created_at": "Tue Mar 14 2023 18:59:39 GMT+0000 (Coordinated Universal Time)", "name": "song2.mp3", "user_id": "56abffcf-c40e-40ae-9e7c-82337aa7031d", "text": "Hey yah!", "url": "https://url.com/1678820376382.mp3", "user": { "id": "56abffcf-c40e-40ae-9e7c-82337aa7031d", "name": "Lorenzo", "email": "[email protected]" } } ]
Endpoint: /api/followers/{id}
Parâmetro | Tipo | Descrição |
---|---|---|
id | string | ID do usuário a ser seguido |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
{ "message": "Followed", "Follow": { "followed_id": "b708d2d3-45a1-4901-b4e7-b74fd8c96eb5", "follower_id": "8f91bed1-285d-4a59-8daa-e42d2f4337d0", "id": 10 } }
Endpoint: /followers/{id}
Parâmetro | Tipo | Descrição |
---|---|---|
id | string | ID do usuário a ser consultado |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
{ 10 }
Endpoint: /followers
Parâmetro | Tipo | Descrição |
---|---|---|
Nenhum | Nenhum | Nenhum |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
[ { "id": "bf45e76e-44d4-4cd3-97bf-e4983c2f02f3", "name": "Ana Karolina" }, { "id": "5987de46-67b6-47e4-85e1-08da15eb7185", "name": "Julio Cesar" } ]
Endpoint: /followers/{id}
Parâmetro | Tipo | Descrição |
---|---|---|
id | string | ID do usuário a ser verificado |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
[ { "id": 9, "follower_id": "56abffcf-c40e-40ae-9e7c-82337aa7031d", "followed_id": "5987de46-67b6-47e4-85e1-08da15eb7185" } ]
Endpoint: /followers/{id}
Parâmetro | Tipo | Descrição |
---|---|---|
id | string | ID do usuário a ser verificado |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
{ "id": 9, "follower_id": "56abffcf-c40e-40ae-9e7c-82337aa7031d", "followed_id": "5987de46-67b6-47e4-85e1-08da15eb7185" }
Endpoint: /feed/page/{page_number}
Parâmetro | Tipo | Descrição |
---|---|---|
page_number | int | Número da página |
{ "nextPage": false, "prevPage": false, "results": [ { "id": "d8f34943-9475-49cd-891c-4b3172115156", "created_at": "Fri Mar 10 2023 18:28:05 GMT+0000 (Coordinated Universal Time)", "name": "Captura de tela de 2023-03-10 15-26-31.png", "user_id": "5987de46-67b6-47e4-85e1-08da15eb7185", "url": "https://url.com/1678472883600.png", "text": "Testando upload de fotos", "user": { "id": "5987de46-67b6-47e4-85e1-08da15eb7185", "name": "Jhon Doe", "email": "[email protected]" } }, { "id": "f6318f61-53e7-4940-a930-100a245184cc", "created_at": "Fri Mar 10 2023 18:26:15 GMT+0000 (Coordinated Universal Time)", "name": "hey ya! [lofi] (128 kbps).mp3", "user_id": "5987de46-67b6-47e4-85e1-08da15eb7185", "text": "My new song", "url": "https://url.com/1678472773075.mp3", "user": { "id": "5987de46-67b6-47e4-85e1-08da15eb7185", "name": "Jhon Doe", "email": "[email protected]" } } ] }
Endpoint: /chats/{id}
Parâmetro | Tipo | Descrição |
---|---|---|
id | string | ID do usuário a ser verificado |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
[ { "id": "92a73c26-50db-4daf-9b55-a252684a4057", "created_at": "Fri Mar 10 2023 18:59:20 GMT+0000 (Coordinated Universal Time)", "from": "56abffcf-c40e-40ae-9e7c-82337aa7031d", "to": "bf45e76e-44d4-4cd3-97bf-e4983c2f02f3", "text": "Salve salve" }, { "id": "ab305335-5e83-4abb-9342-d8e269b22657", "created_at": "Fri Mar 10 2023 19:01:10 GMT+0000 (Coordinated Universal Time)", "from": "bf45e76e-44d4-4cd3-97bf-e4983c2f02f3", "to": "56abffcf-c40e-40ae-9e7c-82337aa7031d", "text": "Oi " } ]
Endpoint: /chats/{id}
Parâmetro | Tipo | Descrição |
---|---|---|
id | string | ID do usuário a ser verificado |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
{ "text":"tudo bem?" }
{ "id": "2b22f27e-2650-4682-902a-4cf1e31854da", "created_at": "Thu Jan 05 2023 16:59:36 GMT-0300 (Horário Padrão de Brasília)", "from": "8f91bed1-285d-4a59-8daa-e42d2f4337d0", "to": "b708d2d3-45a1-4901-b4e7-b74fd8c96eb5", "text": "tudo bem?" }
Caso o usuário já tenha dado like no post com o ID fornecido o like será desfeito
Endpoint: /chats/{post_id}
Parâmetro | Tipo | Descrição |
---|---|---|
post_id | string | ID do post que o usuário irá dar ou desfazer o like |
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxvcmVuem9AbWFpbC5jb20iLCJpYXQiOjE2ODAxNzYzODksImV4cCI6MTY4MDI2Mjc4OSwic3ViIjoiNTZhYmZmY2YtYzQwZS00MGFlLTllN2MtODIzMzdhYTcwMzFkIn0.Sb1wQCyGdFldZKnJ622_nrjvEBpdnlzUPJ3webFBIDM
{ "like": "liked" }