{"info":{"_postman_id":"ed29a4cc-72c3-47dd-a219-ff98e66ce477","name":"Task","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"27793537","collectionId":"ed29a4cc-72c3-47dd-a219-ff98e66ce477","publishedId":"2s9YypDi9K","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-01-25T07:03:42.000Z"},"item":[{"name":"auth","item":[{"name":"create a user","id":"ddf9820d-d25c-44e5-90b3-e26e90f9bf69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\":\"Ali\",\r\n    \"lastName\":\"Allam\",\r\n    \"email\":\"allam98.ali@gmail.com\",\r\n    \"password\":\"ali123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/auth/sign-up","description":"<p>This endpoint Responsible for registration</p>\n","urlObject":{"protocol":"http","port":"5000","path":["auth","sign-up"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ddf9820d-d25c-44e5-90b3-e26e90f9bf69"},{"name":"confirm email","id":"3eccb2ea-6cbf-4b8f-b8a5-86ca2dae0eeb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"allam98.ali@gmail.com\",\r\n    \"OTP\":\"y9l478\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/auth/confirm-email","description":"<p>This endpoint Responsible for confrim email</p>\n","urlObject":{"protocol":"http","port":"5000","path":["auth","confirm-email"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3eccb2ea-6cbf-4b8f-b8a5-86ca2dae0eeb"},{"name":"login","id":"e24bdf02-bc2c-44b5-b62f-406444e19b48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"aliii.abdallah98@gmail.com\",\r\n    \"password\":\"ali123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/auth/log-in","description":"<p>This endpoint Responsible for login</p>\n","urlObject":{"protocol":"http","port":"5000","path":["auth","log-in"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e24bdf02-bc2c-44b5-b62f-406444e19b48"},{"name":"change password","id":"a75709c2-8e04-4a43-92d3-1692a7d9bb7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJBbGkgQWxsYW0iLCJlbWFpbCI6ImFsbGFtOTguYWxpQGdtYWlsLmNvbSIsImlhdCI6MTcwNjE1ODY0OCwiZXhwIjoxNzA2MTYyMjQ4fQ.U5Inl5e7BFMOkO_n80npXE3aWjWxHBVGFxIejhW7Cdw","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"oldPassword\":\"ali123\",\r\n    \"newPassword\":\"ali111\",\r\n    \"confirmNewPassword\":\"ali111\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/auth/change-password","description":"<h3 id=\"change-password\">Change Password</h3>\n<p>This endpoint is used to change the user's password.</p>\n<p><strong>HTTP PATCH</strong> /auth/change-password</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>oldPassword</code> (string, required) - The user's current password.</li>\n<li><code>newPassword</code> (string, required) - The new password to be set.</li>\n<li><code>confirmNewPassword</code> (string, required) - Confirmation of the new password.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status: 200</li>\n<li><code>message</code> (string) - A message indicating the status of the password change request.</li>\n<li><code>err</code> (string) - An error message, if any.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["auth","change-password"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a75709c2-8e04-4a43-92d3-1692a7d9bb7e"},{"name":"forget password","id":"16bfb854-8e4e-47a5-bce9-7de7e48d8b6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJBbGkgQWxsYW0iLCJlbWFpbCI6ImFsbGFtOTguYWxpQGdtYWlsLmNvbSIsImlhdCI6MTcwNjE1ODY0OCwiZXhwIjoxNzA2MTYyMjQ4fQ.U5Inl5e7BFMOkO_n80npXE3aWjWxHBVGFxIejhW7Cdw","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"allam98.ali@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/auth/forget-password","description":"<p>This endpoint is used to initiate the process of resetting a user's password by sending a reset link to the provided email address.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>email (string, required): The email address of the user for whom the password reset link needs to be sent.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>success (boolean): Indicates whether the request was successful.</li>\n<li>message (string): A message providing additional information about the request status.</li>\n</ul>\n<p>Example of a successful response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"success\": true,\n    \"message\": \"\"\n}\n\n</code></pre>","urlObject":{"protocol":"http","port":"5000","path":["auth","forget-password"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"16bfb854-8e4e-47a5-bce9-7de7e48d8b6b"},{"name":"reset password","id":"77c9670f-3da6-4c52-8070-dca7e1f8f1e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJBbGkgQWxsYW0iLCJlbWFpbCI6ImFsbGFtOTguYWxpQGdtYWlsLmNvbSIsImlhdCI6MTcwNjE1ODY0OCwiZXhwIjoxNzA2MTYyMjQ4fQ.U5Inl5e7BFMOkO_n80npXE3aWjWxHBVGFxIejhW7Cdw","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"allam98.ali@gmail.com\",\r\n    \"OTP\":\"685aup\",\r\n    \"newPassword\":\"ali123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/auth/reset-password","description":"<p>This endpoint is used to reset the password by sending a PATCH request to the specified URL. The request should include the email, OTP (One Time Password), and the new password in the request body.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>email (string): The email address of the user.</li>\n<li>OTP (string): The One Time Password received by the user.</li>\n<li>newPassword (string): The new password to be set.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>In Case OTP Corrent Will Response status code 200 and message that th password is changed<br />The response will have a status code of 400 in case of an error, and it will include a message and stack in the response body.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"Error message here\",\n    \"stack\": \"Stack trace here\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"5000","path":["auth","reset-password"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"77c9670f-3da6-4c52-8070-dca7e1f8f1e9"}],"id":"b2c2a71f-bf7a-4819-84da-5068cf3ae51c","_postman_id":"b2c2a71f-bf7a-4819-84da-5068cf3ae51c","description":""},{"name":"user","item":[{"name":"get all user","id":"ec281be4-7773-4c44-95f5-2ea9b2f9d1e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJBbGkgQWxsYW0iLCJlbWFpbCI6ImFsbGFtOTguYWxpQGdtYWlsLmNvbSIsImlhdCI6MTcwNjE2NTIzNCwiZXhwIjoxNzA2MTY4ODM0fQ.hUXY2zBtXhrKos5SthvvqOiTTHuUJSY0VH-9s4SQVYo","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user","description":"<p>Only Admin has access</p>\n<p>This endpoint makes an HTTP GET request to retrieve user information from the server. The response will include a status code of 200 if the request is successful. The response body will contain an array of user objects, each including various user details such as first name, last name, email, role, creation date, and update date. Additionally, each user object may include an OTP (One-Time Password) object with OTP code and expiration date.</p>\n<p>Please note that the actual user data is masked for privacy and security reasons.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec281be4-7773-4c44-95f5-2ea9b2f9d1e7"},{"name":"get user by id","id":"77e0c056-957a-4a20-a1fe-99720ceef831","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/user/65b1e6f7982f7bd73ddcece9","description":"<h1 id=\"user-details-endpoint\">User Details Endpoint</h1>\n<p>This API endpoint retrieves details for a specific user identified by their unique ID.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"http-request-method\">HTTP Request Method</h3>\n<p>GET <a href=\"http://localhost:5000/user/65b1e6f7982f7bd73ddcece9\">http://localhost:5000/user/65b1e6f7982f7bd73ddcece9</a></p>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"message\": \"\",\n    \"results\": {\n        \"OTP\": {\n            \"OTPCode\": \"\",\n            \"expireDate\": \"\"\n        },\n        \"_id\": \"\",\n        \"firstName\": \"\",\n        \"lastName\": \"\",\n        \"email\": \"\",\n        \"password\": \"\",\n        \"confirmEmail\": true,\n        \"isDeleted\": true,\n        \"role\": \"\",\n        \"OTPNumber\": 0,\n        \"posts\": [],\n        \"createdAt\": \"\",\n        \"updatedAt\": \"\",\n        \"__v\": 0\n    }\n}\n</code></pre>\n","urlObject":{"protocol":"http","port":"5000","path":["user","65b1e6f7982f7bd73ddcece9"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"77e0c056-957a-4a20-a1fe-99720ceef831"},{"name":"get loggin user","id":"af6665d3-b958-4268-a3dd-4295eff2a78e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJBbGkgQWxsYW0iLCJlbWFpbCI6ImFsbGFtOTguYWxpQGdtYWlsLmNvbSIsImlhdCI6MTcwNjE2NTIzNCwiZXhwIjoxNzA2MTY4ODM0fQ.hUXY2zBtXhrKos5SthvvqOiTTHuUJSY0VH-9s4SQVYo","type":"text"}],"url":"http://localhost:5000/user/profile","description":"<p>This endpoint makes an HTTP GET request to retrieve the user's profile. The response will include the user's profile details such as first name, last name, email, role, creation date, update date, and other related information. The response will have a status code of 200 upon successful retrieval of the user's profile.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user","profile"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"af6665d3-b958-4268-a3dd-4295eff2a78e"},{"name":"soft delete","id":"5c484d79-5b80-4d52-8497-e2430d19e03e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJBbGkgQWxsYW0iLCJlbWFpbCI6ImFsbGFtOTguYWxpQGdtYWlsLmNvbSIsImlhdCI6MTcwNjE2NTIzNCwiZXhwIjoxNzA2MTY4ODM0fQ.hUXY2zBtXhrKos5SthvvqOiTTHuUJSY0VH-9s4SQVYo","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\":\"65b1e6f7982f7bd73ddcece9\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/delete","description":"<p>This endpoint is used to delete a user using an HTTP PATCH request to the specified URL. The request should include a payload in raw request body type with the user's ID to be deleted.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>id (string, required): The ID of the user to be deleted.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n<li>success (boolean): Indicates whether the deletion was successful.</li>\n<li>message (string): A message regarding the deletion operation.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["user","delete"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5c484d79-5b80-4d52-8497-e2430d19e03e"},{"name":"delete forever","id":"be84f67d-1f03-4717-b52e-5e228192e393","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJBbGkgQWxsYW0iLCJlbWFpbCI6ImFsbGFtOTguYWxpQGdtYWlsLmNvbSIsImlhdCI6MTcwNjE1ODgzNCwiZXhwIjoxNzA2MTYyNDM0fQ.iOOk6neg5IKVCffJdJ120OZexvFPqMdwYEdJLYxD3zE","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\":\"65b1e6f7982f7bd73ddcece9\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/65b1e6f7982f7bd73ddcece7","urlObject":{"protocol":"http","port":"5000","path":["user","65b1e6f7982f7bd73ddcece7"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"be84f67d-1f03-4717-b52e-5e228192e393"},{"name":"update","id":"94ce763d-ecf2-4b86-bd15-90ee081d49c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJBbGkgQWxsYW0iLCJlbWFpbCI6ImFsbGFtOTguYWxpQGdtYWlsLmNvbSIsImlhdCI6MTcwNjE2NTIzNCwiZXhwIjoxNzA2MTY4ODM0fQ.hUXY2zBtXhrKos5SthvvqOiTTHuUJSY0VH-9s4SQVYo","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"firstName\":\"alii\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/update","description":"<h3 id=\"update-user-details\">Update User Details</h3>\n<h4 id=\"example\">Example</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"firstName\": \"John\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"5000","path":["user","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"94ce763d-ecf2-4b86-bd15-90ee081d49c6"}],"id":"11d1480e-b805-41cf-838f-bf708356fc3b","_postman_id":"11d1480e-b805-41cf-838f-bf708356fc3b","description":""},{"name":"admin","item":[{"name":"getAllPermissions","id":"d1d0813e-e436-4dea-855f-464d625ca0e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjdmZmVhMTI4NTU5ZmI3NDVjM2Q4NCIsIm5hbWUiOiJBbGkgQWxsYW0iLCJlbWFpbCI6ImFsaWlpLmFiZGFsbGFoOThAZ21haWwuY29tIiwiaWF0IjoxNzA2NTY1NDcyLCJleHAiOjE3MDcxNzAyNzJ9.hg-5ni8PrIOcoRbDf_wqttOOcNfHL2LFFAnldZB3E1E","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/admin","description":"<p>Only Admin has access</p>\n<p>This endpoint makes an HTTP GET request to retrieve user information from the server. The response will include a status code of 200 if the request is successful. The response body will contain an array of user objects, each including various user details such as first name, last name, email, role, creation date, and update date. Additionally, each user object may include an OTP (One-Time Password) object with OTP code and expiration date.</p>\n<p>Please note that the actual user data is masked for privacy and security reasons.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["admin"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1d0813e-e436-4dea-855f-464d625ca0e3"},{"name":"getPermissionById","id":"e71e1c37-5944-4eeb-b635-849e6677b310","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJhbGlpIEFsbGFtIiwiZW1haWwiOiJhbGxhbTk4LmFsaUBnbWFpbC5jb20iLCJpYXQiOjE3MDY1NjUyODQsImV4cCI6MTcwNzE3MDA4NH0.zyjugbDV6SKJGD9-pTEULwSllBIaT2pHoExSf3MkSlk","type":"text"}],"url":"http://localhost:5000/admin/65b7fe3204a0e7899ceec29d","description":"<h1 id=\"user-details-endpoint\">User Details Endpoint</h1>\n<p>This API endpoint retrieves details for a specific user identified by their unique ID.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"http-request-method\">HTTP Request Method</h3>\n<p>GET <a href=\"http://localhost:5000/user/65b1e6f7982f7bd73ddcece9\">http://localhost:5000/user/65b1e6f7982f7bd73ddcece9</a></p>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li>Status: 200 OK</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"message\": \"\",\n    \"results\": {\n        \"OTP\": {\n            \"OTPCode\": \"\",\n            \"expireDate\": \"\"\n        },\n        \"_id\": \"\",\n        \"firstName\": \"\",\n        \"lastName\": \"\",\n        \"email\": \"\",\n        \"password\": \"\",\n        \"confirmEmail\": true,\n        \"isDeleted\": true,\n        \"role\": \"\",\n        \"OTPNumber\": 0,\n        \"posts\": [],\n        \"createdAt\": \"\",\n        \"updatedAt\": \"\",\n        \"__v\": 0\n    }\n}\n</code></pre>\n","urlObject":{"protocol":"http","port":"5000","path":["admin","65b7fe3204a0e7899ceec29d"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e71e1c37-5944-4eeb-b635-849e6677b310"},{"name":"addNewPermission","id":"1542bca1-f4bf-4bf9-9790-dec4da7811b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJhbGlpIEFsbGFtIiwiZW1haWwiOiJhbGxhbTk4LmFsaUBnbWFpbC5jb20iLCJpYXQiOjE3MDY1NjUyODQsImV4cCI6MTcwNzE3MDA4NH0.zyjugbDV6SKJGD9-pTEULwSllBIaT2pHoExSf3MkSlk","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"testing\",\r\n    \"description\":\"Who Has This per.. Can Pass A Remove A User\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/admin?","description":"<p>This endpoint makes an HTTP GET request to retrieve the user's profile. The response will include the user's profile details such as first name, last name, email, role, creation date, update date, and other related information. The response will have a status code of 200 upon successful retrieval of the user's profile.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["admin"],"host":["localhost"],"query":[{"key":"","value":null}],"variable":[]}},"response":[],"_postman_id":"1542bca1-f4bf-4bf9-9790-dec4da7811b2"},{"name":"updatePermission","id":"7856f37d-3d05-455e-bf3d-0a2c5f40a071","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJhbGlpIEFsbGFtIiwiZW1haWwiOiJhbGxhbTk4LmFsaUBnbWFpbC5jb20iLCJpYXQiOjE3MDY1NjUyODQsImV4cCI6MTcwNzE3MDA4NH0.zyjugbDV6SKJGD9-pTEULwSllBIaT2pHoExSf3MkSlk","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Testing again\",\r\n    \"description\":\"Who Has This per.. Can Delete Any Post\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/admin/65b81ec84504229128084faf","description":"<p>This endpoint is used to delete a user using an HTTP PATCH request to the specified URL. The request should include a payload in raw request body type with the user's ID to be deleted.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>id (string, required): The ID of the user to be deleted.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200 OK</li>\n<li>success (boolean): Indicates whether the deletion was successful.</li>\n<li>message (string): A message regarding the deletion operation.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["admin","65b81ec84504229128084faf"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7856f37d-3d05-455e-bf3d-0a2c5f40a071"},{"name":"deletePermission","id":"a247dc46-4441-4c40-ab23-8c437e93a9b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJhbGlpIEFsbGFtIiwiZW1haWwiOiJhbGxhbTk4LmFsaUBnbWFpbC5jb20iLCJpYXQiOjE3MDY1NjUyODQsImV4cCI6MTcwNzE3MDA4NH0.zyjugbDV6SKJGD9-pTEULwSllBIaT2pHoExSf3MkSlk","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/admin/65b81ec84504229128084faf","urlObject":{"protocol":"http","port":"5000","path":["admin","65b81ec84504229128084faf"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a247dc46-4441-4c40-ab23-8c437e93a9b7"},{"name":"change role","id":"fbe1d42a-b468-4d9d-ad41-88e9227a4e20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJhbGlpIEFsbGFtIiwiZW1haWwiOiJhbGxhbTk4LmFsaUBnbWFpbC5jb20iLCJpYXQiOjE3MDY1NjQxMTcsImV4cCI6MTcwNzE2ODkxN30.Drejzi_ZQiURcrUfflC4-QbOg9cQKmIi15edF81GZrU","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"role\":\"User\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/admin/65b1e6f7982f7bd73ddcece9","description":"<h3 id=\"update-user-details\">Update User Details</h3>\n<h4 id=\"example\">Example</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"firstName\": \"John\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"5000","path":["admin","65b1e6f7982f7bd73ddcece9"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"fbe1d42a-b468-4d9d-ad41-88e9227a4e20"},{"name":"assign permissions","id":"11b35d24-1a63-4ec3-8a91-6b73cb00292a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJhbGlpIEFsbGFtIiwiZW1haWwiOiJhbGxhbTk4LmFsaUBnbWFpbC5jb20iLCJpYXQiOjE3MDY1NjUyODQsImV4cCI6MTcwNzE3MDA4NH0.zyjugbDV6SKJGD9-pTEULwSllBIaT2pHoExSf3MkSlk","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userId\":\"65b1e6f7982f7bd73ddcece9\",\r\n    \"permissionId\":\"65b81f274504229128084fbb\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/admin/permissions","description":"<h3 id=\"update-user-details\">Update User Details</h3>\n<h4 id=\"example\">Example</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"firstName\": \"John\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"5000","path":["admin","permissions"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"11b35d24-1a63-4ec3-8a91-6b73cb00292a"}],"id":"384e2f54-db06-4a24-a59f-dccc2ab28299","_postman_id":"384e2f54-db06-4a24-a59f-dccc2ab28299","description":""},{"name":"post","item":[{"name":"get all posts","id":"f7d72494-8961-49fc-a9a5-a3573f872a12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJBbGkgQWxsYW0iLCJlbWFpbCI6ImFsbGFtOTguYWxpQGdtYWlsLmNvbSIsImlhdCI6MTcwNjE1ODgzNCwiZXhwIjoxNzA2MTYyNDM0fQ.iOOk6neg5IKVCffJdJ120OZexvFPqMdwYEdJLYxD3zE","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/post","description":"<p>This endpoint makes an HTTP GET request to retrieve a post from the server.</p>\n<p>The response will have a status code of 200, along with a JSON body containing the following fields:</p>\n<ul>\n<li>success (boolean): Indicates whether the request was successful.</li>\n<li>message (string): Provides any additional information related to the request.</li>\n<li>results (array): Contains the retrieved post data.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["post"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7d72494-8961-49fc-a9a5-a3573f872a12"},{"name":"create a post","id":"63fd8169-8141-4784-a4f4-c5f393674086","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJBbGkgQWxsYW0iLCJlbWFpbCI6ImFsbGFtOTguYWxpQGdtYWlsLmNvbSIsImlhdCI6MTcwNjE2NTIzNCwiZXhwIjoxNzA2MTY4ODM0fQ.hUXY2zBtXhrKos5SthvvqOiTTHuUJSY0VH-9s4SQVYo","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"content\":\"testing\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/post","description":"<p>This API endpoint allows you to make a POST request to <a href=\"http://localhost:5000/post\">http://localhost:5000/post</a> in order to create a new entry. The request should include a JSON payload in the raw request body type, with a \"content\" field.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>content (string, required): The content of the entry.</li>\n</ul>\n<p>Upon a successful execution, the API will return a status code of 201 along with a JSON response containing the following fields:</p>\n<ul>\n<li>success (boolean): Indicates if the request was successful.</li>\n<li>message (string): A message related to the request.</li>\n<li>results (object): An object containing the details of the created entry, including content, createdBy, _id, createdAt, updatedAt, and __v.</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"message\": \"\",\n    \"results\": {\n        \"content\": \"\",\n        \"createdBy\": \"\",\n        \"_id\": \"\",\n        \"createdAt\": \"\",\n        \"updatedAt\": \"\",\n        \"__v\": 0\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"5000","path":["post"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"63fd8169-8141-4784-a4f4-c5f393674086"},{"name":"get by id","id":"b7ed7e64-9533-4ab5-b0e0-c95f64833244","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJBbGkgQWxsYW0iLCJlbWFpbCI6ImFsbGFtOTguYWxpQGdtYWlsLmNvbSIsImlhdCI6MTcwNjE1ODgzNCwiZXhwIjoxNzA2MTYyNDM0fQ.iOOk6neg5IKVCffJdJ120OZexvFPqMdwYEdJLYxD3zE","type":"text"}],"url":"http://localhost:5000/post/65b205be0f7a9b4879f10700","description":"<p>This endpoint makes an HTTP GET request to retrieve a specific post with the given ID. The response will include a success status, a message, and the details of the post including its ID, content, creator, creation and update timestamps, and a version number.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["post","65b205be0f7a9b4879f10700"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b7ed7e64-9533-4ab5-b0e0-c95f64833244"},{"name":"delete","id":"c284a9bd-4151-4fb3-abe5-1beab8878286","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJBbGkgQWxsYW0iLCJlbWFpbCI6ImFsbGFtOTguYWxpQGdtYWlsLmNvbSIsImlhdCI6MTcwNjE1ODgzNCwiZXhwIjoxNzA2MTYyNDM0fQ.iOOk6neg5IKVCffJdJ120OZexvFPqMdwYEdJLYxD3zE","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\":\"65b1e6f7982f7bd73ddcece9\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/post/65b1e6f7982f7bd73ddcece7","urlObject":{"protocol":"http","port":"5000","path":["post","65b1e6f7982f7bd73ddcece7"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c284a9bd-4151-4fb3-abe5-1beab8878286"},{"name":"update post","id":"940cbbe6-36ae-46af-966c-2cd85264da08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"authorization","value":"BEARER__eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1YjFlNmY3OTgyZjdiZDczZGRjZWNlOSIsIm5hbWUiOiJBbGkgQWxsYW0iLCJlbWFpbCI6ImFsbGFtOTguYWxpQGdtYWlsLmNvbSIsImlhdCI6MTcwNjE1ODgzNCwiZXhwIjoxNzA2MTYyNDM0fQ.iOOk6neg5IKVCffJdJ120OZexvFPqMdwYEdJLYxD3zE","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"content\":\"65b1e6f7982f7bd73ddcece9\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/post/65b1e6f7982f7bd73ddcece7","urlObject":{"protocol":"http","port":"5000","path":["post","65b1e6f7982f7bd73ddcece7"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"940cbbe6-36ae-46af-966c-2cd85264da08"}],"id":"dbe057eb-4218-433d-89a4-3070cbe1f8e7","_postman_id":"dbe057eb-4218-433d-89a4-3070cbe1f8e7","description":""}]}