{"info":{"_postman_id":"ca40a076-cbaf-4b04-9a20-589d6b2014bb","name":"FaceHook API | LearnWithSumit","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"9649334","collectionId":"ca40a076-cbaf-4b04-9a20-589d6b2014bb","publishedId":"2s9YyvBL56","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-02-19T07:05:36.000Z"},"item":[{"name":"Auth","item":[{"name":"Registration","id":"c16cb24e-a8e6-4aa7-bb1a-7426705cf0ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"atapas@email.com\",\n  \"password\": \"bestPassw0rd\",\n  \"firstName\": \"Tapas\",\n  \"lastName\": \"Adhikary\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/register","description":"<h3 id=\"register-user\">Register User</h3>\n<p>This endpoint is used to register a new user.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li>email (text, required): The email address of the user.</li>\n<li>password (text, required): The password for the user account.</li>\n<li>firstName (text, required): The first name of the user.</li>\n<li>lastName (text, required): The last name of the user.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 500</li>\n<li>Content-Type: application/json</li>\n<li>error (string): An error message indicating the reason for the failure.</li>\n</ul>\n","urlObject":{"path":["auth","register"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"c16cb24e-a8e6-4aa7-bb1a-7426705cf0ae"},{"name":"Login","event":[{"listen":"prerequest","script":{"id":"156db408-730b-409d-854d-d77c7bdc22bb","exec":[""],"type":"text/javascript"}}],"id":"580984c9-7064-47c1-a134-8316b5e8d1a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"saadh392@mail.com\",\n  \"password\": \"bestPassw0rd\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/login","urlObject":{"path":["auth","login"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"580984c9-7064-47c1-a134-8316b5e8d1a8"},{"name":"Refresh Token","id":"f9e9d4c9-dc9d-46ce-89a1-49fe69449f1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"refreshToken\" : \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijk1MTYwYTc0LWRhZmYtNDgwZS04OTUxLWQ0YmQyOTNjY2FhMSIsImVtYWlsIjoic2FhZGgzOTJAbWFpbC5jb20iLCJ0eXBlIjoicmVmcmVzaCIsImlhdCI6MTcwNzM3Nzc4OSwiZXhwIjoxNzA3NDY0MTg5fQ.FFHtq6rXMJ0otmwxdvRCU_8ZgcPCSCReKGa7DDvjzPY\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/refresh-token","description":"<h3 id=\"refresh-token\">Refresh Token</h3>\n<p>This endpoint is used to refresh the access token by providing the refresh token.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li>Method: POST</li>\n<li>URL: http://localhost:3000/auth/refresh-token</li>\n<li>Body:<ul>\n<li>refreshToken (string, required): The refresh token used to obtain a new access token.</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n<li>{ \"token\": \"\", \"refreshToken\": \"\" }</li>\n</ul>\n","urlObject":{"path":["auth","refresh-token"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"f9e9d4c9-dc9d-46ce-89a1-49fe69449f1b"}],"id":"99f0d5d8-006a-4733-b34e-6060cbfaa773","_postman_id":"99f0d5d8-006a-4733-b34e-6060cbfaa773","description":""},{"name":"Posts","item":[{"name":"Get Posts","id":"77ec240f-3949-4a8b-bc0a-c01c04b9dc3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmZDNlZDQyLTIyNzUtNGQ1Zi1hNDM2LWU1YTNiZjU4NmM1NiIsImVtYWlsIjoic2FhZGgzOTJAbWFpbC5jb20iLCJ0eXBlIjoiYWNjZXNzIiwiaWF0IjoxNzE0OTcyMzQzLCJleHAiOjE3MTQ5NzU5NDN9.JJTIhpGhMVcccYvFyR6_Hdp8CXMD1IP-dDFPbVt2cXQ"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/posts","urlObject":{"path":["posts"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"77ec240f-3949-4a8b-bc0a-c01c04b9dc3f"},{"name":"Get Single Post","id":"7da96cc7-02a8-4840-be43-c343f94d99b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmZDNlZDQyLTIyNzUtNGQ1Zi1hNDM2LWU1YTNiZjU4NmM1NiIsImVtYWlsIjoic2FhZGgzOTJAbWFpbC5jb20iLCJ0eXBlIjoiYWNjZXNzIiwiaWF0IjoxNzE0OTcyMzQzLCJleHAiOjE3MTQ5NzU5NDN9.JJTIhpGhMVcccYvFyR6_Hdp8CXMD1IP-dDFPbVt2cXQ"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/posts/e19554d0-bd02-4672-a01c-805c4eb6dbd8","urlObject":{"path":["posts","e19554d0-bd02-4672-a01c-805c4eb6dbd8"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"7da96cc7-02a8-4840-be43-c343f94d99b6"},{"name":"Update Post","id":"b29457a7-fcc4-4f3d-9f61-a1d3fcaa09c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmZDNlZDQyLTIyNzUtNGQ1Zi1hNDM2LWU1YTNiZjU4NmM1NiIsImVtYWlsIjoic2FhZGgzOTJAbWFpbC5jb20iLCJ0eXBlIjoiYWNjZXNzIiwiaWF0IjoxNzE0OTcyMzQzLCJleHAiOjE3MTQ5NzU5NDN9.JJTIhpGhMVcccYvFyR6_Hdp8CXMD1IP-dDFPbVt2cXQ"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"content","value":"Edited","type":"text"}]},"url":"http://localhost:3000/posts/cba6b034-be5f-4a0f-b01a-dafbed682cfc","urlObject":{"path":["posts","cba6b034-be5f-4a0f-b01a-dafbed682cfc"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"b29457a7-fcc4-4f3d-9f61-a1d3fcaa09c9"},{"name":"Delete Post","id":"dfe8221b-1602-47ec-8edf-90fcac160fe3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmZDNlZDQyLTIyNzUtNGQ1Zi1hNDM2LWU1YTNiZjU4NmM1NiIsImVtYWlsIjoic2FhZGgzOTJAbWFpbC5jb20iLCJ0eXBlIjoiYWNjZXNzIiwiaWF0IjoxNzE0OTcyMzQzLCJleHAiOjE3MTQ5NzU5NDN9.JJTIhpGhMVcccYvFyR6_Hdp8CXMD1IP-dDFPbVt2cXQ"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/posts/cba6b034-be5f-4a0f-b01a-dafbed682cfc","urlObject":{"path":["posts","cba6b034-be5f-4a0f-b01a-dafbed682cfc"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfe8221b-1602-47ec-8edf-90fcac160fe3"},{"name":"Create Post","id":"85ca344d-1446-4191-bb6b-4a29d7c054d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmZDNlZDQyLTIyNzUtNGQ1Zi1hNDM2LWU1YTNiZjU4NmM1NiIsImVtYWlsIjoic2FhZGgzOTJAbWFpbC5jb20iLCJ0eXBlIjoiYWNjZXNzIiwiaWF0IjoxNzE0OTcyMzQzLCJleHAiOjE3MTQ5NzU5NDN9.JJTIhpGhMVcccYvFyR6_Hdp8CXMD1IP-dDFPbVt2cXQ"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"postType","value":"text","description":"<p>Indicates the type of the post (text, image, or both)</p>\n","type":"text"},{"key":"content","value":"বই আছে, কিন্তু পরার সময় নেই। আমি অবসরে ব্যাস্ততম।\nকিছু বই তো আবার নিজে নিজেই অবসর নিয়েছে…","type":"text"},{"key":"image","type":"file","src":"/home/saad/Pictures/428656848_10163435511088574_4287416034489221545_n.jpg"}]},"url":"http://localhost:3000/posts","description":"<p>This endpoint allows you to create a new post. The request should be sent as an HTTPS POST to http://localhost:3000/posts with a JSON payload in the raw request body. The payload should include the \"postType\" (text, image, or both) and \"body\" of the post.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>postType</code> (string): Indicates the type of the post (text, image, or both).</li>\n<li><code>body</code> (string): The content of the post.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful creation, the server will respond with a status code of 201 and a JSON object containing the details of the newly created post. The response includes the \"postType\" and \"body\" of the post, along with information about the author, comments, likes, creation timestamp, and post ID.</p>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"postType\": \"text\",\n  \"body\": \"Grateful for the incredible experience...\",\n  \"image\": null,\n  \"author\": {\n    \"email\": \"\",\n    \"firstname\": \"\",\n    \"lastname\": \"\",\n    \"id\": 0\n  },\n  \"comments\": [],\n  \"likes\": [],\n  \"createAt\": \"\",\n  \"id\": 0\n}\n\n</code></pre>\n","urlObject":{"path":["posts"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"85ca344d-1446-4191-bb6b-4a29d7c054d2"},{"name":"Like","id":"e9c60b74-4fb9-4b1f-bb73-6dbfe9479af6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmZDNlZDQyLTIyNzUtNGQ1Zi1hNDM2LWU1YTNiZjU4NmM1NiIsImVtYWlsIjoic2FhZGgzOTJAbWFpbC5jb20iLCJ0eXBlIjoiYWNjZXNzIiwiaWF0IjoxNzE0OTcyMzQzLCJleHAiOjE3MTQ5NzU5NDN9.JJTIhpGhMVcccYvFyR6_Hdp8CXMD1IP-dDFPbVt2cXQ"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/posts/1/like","description":"<p>This endpoint allows you to create a new post. The request should be sent as an HTTPS POST to http://localhost:3000/posts with a JSON payload in the raw request body. The payload should include the \"postType\" (text, image, or both) and \"body\" of the post.S</p>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful creation, the server will respond with a status code of 201 and a JSON object containing the details of the newly created post. The response includes the \"postType\" and \"body\" of the post, along with information about the author, comments, likes, creation timestamp, and post ID.</p>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"postType\": \"text\",\n  \"body\": \"Grateful for the incredible experience...\",\n  \"image\": null,\n  \"author\": {\n    \"email\": \"\",\n    \"firstname\": \"\",\n    \"lastname\": \"\",\n    \"id\": 0\n  },\n  \"comments\": [],\n  \"likes\": [],\n  \"createAt\": \"\",\n  \"id\": 0\n}\n\n</code></pre>\n","urlObject":{"path":["posts","1","like"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"e9c60b74-4fb9-4b1f-bb73-6dbfe9479af6"},{"name":"Comment","id":"8ab0584c-3e93-4b74-bfad-f39a1d4b6d71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmZDNlZDQyLTIyNzUtNGQ1Zi1hNDM2LWU1YTNiZjU4NmM1NiIsImVtYWlsIjoic2FhZGgzOTJAbWFpbC5jb20iLCJ0eXBlIjoiYWNjZXNzIiwiaWF0IjoxNzE0OTcyMzQzLCJleHAiOjE3MTQ5NzU5NDN9.JJTIhpGhMVcccYvFyR6_Hdp8CXMD1IP-dDFPbVt2cXQ"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"comment\" : \"সবাইকে অনেক ভালো লাগছে 😍\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/posts/114d6b94-fc94-4d3c-ad86-720a18eaf437/comment","description":"<p>This endpoint allows you to create a new post. The request should be sent as an HTTPS POST to http://localhost:3000/posts with a JSON payload in the raw request body. The payload should include the \"postType\" (text, image, or both) and \"body\" of the post.</p>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful creation, the server will respond with a status code of 201 and a JSON object containing the details of the newly created post. The response includes the \"postType\" and \"body\" of the post, along with information about the author, comments, likes, creation timestamp, and post ID.</p>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"postType\": \"text\",\n  \"body\": \"Grateful for the incredible experience...\",\n  \"image\": null,\n  \"author\": {\n    \"email\": \"\",\n    \"firstname\": \"\",\n    \"lastname\": \"\",\n    \"id\": 0\n  },\n  \"comments\": [],\n  \"likes\": [],\n  \"createAt\": \"\",\n  \"id\": 0\n}\n\n</code></pre>\n","urlObject":{"path":["posts","114d6b94-fc94-4d3c-ad86-720a18eaf437","comment"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ab0584c-3e93-4b74-bfad-f39a1d4b6d71"},{"name":"Comment","id":"43c17aea-0ce4-4120-aa82-353846baed04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmZDNlZDQyLTIyNzUtNGQ1Zi1hNDM2LWU1YTNiZjU4NmM1NiIsImVtYWlsIjoic2FhZGgzOTJAbWFpbC5jb20iLCJ0eXBlIjoiYWNjZXNzIiwiaWF0IjoxNzE0OTcyMzQzLCJleHAiOjE3MTQ5NzU5NDN9.JJTIhpGhMVcccYvFyR6_Hdp8CXMD1IP-dDFPbVt2cXQ"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/posts/1/comment/de3b3151-5d92-462e-b626-a1f5ca56a5f8","description":"<p>This endpoint allows you to create a new post. The request should be sent as an HTTPS POST to http://localhost:3000/posts with a JSON payload in the raw request body. The payload should include the \"postType\" (text, image, or both) and \"body\" of the post.</p>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful creation, the server will respond with a status code of 201 and a JSON object containing the details of the newly created post. The response includes the \"postType\" and \"body\" of the post, along with information about the author, comments, likes, creation timestamp, and post ID.</p>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"postType\": \"text\",\n  \"body\": \"Grateful for the incredible experience...\",\n  \"image\": null,\n  \"author\": {\n    \"email\": \"\",\n    \"firstname\": \"\",\n    \"lastname\": \"\",\n    \"id\": 0\n  },\n  \"comments\": [],\n  \"likes\": [],\n  \"createAt\": \"\",\n  \"id\": 0\n}\n\n</code></pre>\n","urlObject":{"path":["posts","1","comment","de3b3151-5d92-462e-b626-a1f5ca56a5f8"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"43c17aea-0ce4-4120-aa82-353846baed04"}],"id":"4f9a29f3-3af8-447a-95e0-346fd08fb72a","_postman_id":"4f9a29f3-3af8-447a-95e0-346fd08fb72a","description":""},{"name":"Profile","item":[{"name":"Profile","id":"c1f63c3d-8bfd-4c2c-aec3-5970234bfe9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmZDNlZDQyLTIyNzUtNGQ1Zi1hNDM2LWU1YTNiZjU4NmM1NiIsImVtYWlsIjoic2FhZGgzOTJAbWFpbC5jb20iLCJ0eXBlIjoiYWNjZXNzIiwiaWF0IjoxNzE0OTcyMzQzLCJleHAiOjE3MTQ5NzU5NDN9.JJTIhpGhMVcccYvFyR6_Hdp8CXMD1IP-dDFPbVt2cXQ"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/profile/95160a74-daff-480e-8951-d4bd293ccaa1","description":"<p>This endpoint retrieves the profile information for a specific user with the provided ID. The response will include details about the user's profile, such as their first name, last name, avatar, email, as well as their posts including post content, type, author details, comments, likes, and creation timestamp.</p>\n","urlObject":{"path":["profile","95160a74-daff-480e-8951-d4bd293ccaa1"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1f63c3d-8bfd-4c2c-aec3-5970234bfe9e"},{"name":"Profile","id":"317023c1-4000-4e83-a7bd-2b3872960022","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmZDNlZDQyLTIyNzUtNGQ1Zi1hNDM2LWU1YTNiZjU4NmM1NiIsImVtYWlsIjoic2FhZGgzOTJAbWFpbC5jb20iLCJ0eXBlIjoiYWNjZXNzIiwiaWF0IjoxNzE0OTcyMzQzLCJleHAiOjE3MTQ5NzU5NDN9.JJTIhpGhMVcccYvFyR6_Hdp8CXMD1IP-dDFPbVt2cXQ"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n  \"firstname\" : \"Saad\",\n  \"lastName\" : \"Hasan\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/profile/1","urlObject":{"path":["profile","1"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"317023c1-4000-4e83-a7bd-2b3872960022"},{"name":"Upload Avatar","id":"76604b8a-6fb7-40b0-b720-56320cf1edcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmZDNlZDQyLTIyNzUtNGQ1Zi1hNDM2LWU1YTNiZjU4NmM1NiIsImVtYWlsIjoic2FhZGgzOTJAbWFpbC5jb20iLCJ0eXBlIjoiYWNjZXNzIiwiaWF0IjoxNzE0OTcyMzQzLCJleHAiOjE3MTQ5NzU5NDN9.JJTIhpGhMVcccYvFyR6_Hdp8CXMD1IP-dDFPbVt2cXQ"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"avatar","type":"file","src":"/home/saad/Pictures/sumit-saha.png"}]},"url":"http://localhost:3000/profile/1aeef0f0-77ba-456b-8b5b-d4145a9b5410/avatar","description":"<p>This endpoint allows you to upload a new avatar for the profile with ID 1. The request should be sent as an HTTP POST to http://localhost:3000/profile/1/avatar with the avatar file included in the form-data request body.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>avatar (file): The avatar file to be uploaded.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response will have a status code of 200 and a Content-Type of text/xml. The actual content of the response is not available.</p>\n","urlObject":{"path":["profile","1aeef0f0-77ba-456b-8b5b-d4145a9b5410","avatar"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"76604b8a-6fb7-40b0-b720-56320cf1edcd"},{"name":"Preview Avatar","id":"1182f22c-bf11-4a7d-aaf4-88c6049d2780","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmZDNlZDQyLTIyNzUtNGQ1Zi1hNDM2LWU1YTNiZjU4NmM1NiIsImVtYWlsIjoic2FhZGgzOTJAbWFpbC5jb20iLCJ0eXBlIjoiYWNjZXNzIiwiaWF0IjoxNzE0OTcyMzQzLCJleHAiOjE3MTQ5NzU5NDN9.JJTIhpGhMVcccYvFyR6_Hdp8CXMD1IP-dDFPbVt2cXQ"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"avatar","type":"file","src":"/home/saad/Pictures/Screenshot 2023-11-19 at 9.48.02 PM.png"}]},"url":"http://localhost:3000/uploads/images.png","urlObject":{"path":["uploads","images.png"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"1182f22c-bf11-4a7d-aaf4-88c6049d2780"}],"id":"68a3d90b-7c4f-4fbc-a34b-5241f15ffd89","_postman_id":"68a3d90b-7c4f-4fbc-a34b-5241f15ffd89","description":""}],"event":[{"listen":"prerequest","script":{"id":"6028c370-1328-4344-a6e2-b8f0b130b3f9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c04a9a97-23c8-40d1-84df-f347c02d41a9","type":"text/javascript","exec":[""]}}],"variable":[{"key":"BASE_URL","value":"http://localhost:3000","type":"string"},{"key":"AUTH_TOKEN","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmZDNlZDQyLTIyNzUtNGQ1Zi1hNDM2LWU1YTNiZjU4NmM1NiIsImVtYWlsIjoic2FhZGgzOTJAbWFpbC5jb20iLCJ0eXBlIjoiYWNjZXNzIiwiaWF0IjoxNzE0OTcyMzQzLCJleHAiOjE3MTQ5NzU5NDN9.JJTIhpGhMVcccYvFyR6_Hdp8CXMD1IP-dDFPbVt2cXQ","type":"string"},{"key":"REFRESH_TOKEN","value":"","disabled":true},{"key":"REFRESH_TOKEN","value":""}]}