{"info":{"_postman_id":"ed5b42f9-48e3-4de1-923e-d4f7d18a21f2","name":"Miscellaneous and social apis","description":"<html><head></head><body><p><strong>Miscellaneous and Social APIs Collection</strong></p>\n<p>This collection includes various APIs for miscellaneous functionalities and social interactions on the platform. Below is an overview of the available endpoints:</p>\n<ol>\n<li><p><strong>Contact Form API:</strong></p>\n<ul>\n<li><p>Allows users to submit contact forms with details like name, email, subject, and message.</p>\n</li>\n<li><p>Endpoint: POST /api/v1/contact</p>\n</li>\n<li><p>Also supports retrieving a list of contact form submissions.</p>\n</li>\n<li><p>Endpoint: GET /api/v1/contact</p>\n</li>\n<li><p>Requires authentication and admin privileges for certain actions.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Follow User API:</strong></p>\n<ul>\n<li><p>Enables users to follow other users on the platform.</p>\n</li>\n<li><p>Endpoint: POST /api/v1/follower/follow</p>\n</li>\n<li><p>Requires authentication and verification.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>List Followers API:</strong></p>\n<ul>\n<li><p>Retrieves a list of followers for the authenticated user.</p>\n</li>\n<li><p>Endpoint: GET /api/v1/followers</p>\n</li>\n<li><p>Requires authentication.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>List Following Authors API:</strong></p>\n<ul>\n<li><p>Retrieves a list of authors whom the authenticated user is following.</p>\n</li>\n<li><p>Endpoint: GET /api/v1/following</p>\n</li>\n<li><p>Requires authentication and verification.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Unfollow API:</strong></p>\n<ul>\n<li><p>Allows users to unfollow other users.</p>\n</li>\n<li><p>Endpoint: DELETE /api/v1/follower/unfollow/:FollowId</p>\n</li>\n<li><p>Requires authentication.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Like Post API:</strong></p>\n<ul>\n<li><p>Lets users like a post on the platform.</p>\n</li>\n<li><p>Endpoint: GET /api/v1/like/:postId</p>\n</li>\n<li><p>Requires authentication and verification.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Unlike Post API:</strong></p>\n<ul>\n<li><p>Enables users to remove their like from a post.</p>\n</li>\n<li><p>Endpoint: DELETE /api/v1/dislike/:postId</p>\n</li>\n<li><p>Requires authentication and verification.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Delete Contact Form API:</strong></p>\n<ul>\n<li><p>Allows admins to delete contact form submissions.</p>\n</li>\n<li><p>Endpoint: DELETE /api/v1/contact/:id</p>\n</li>\n<li><p>Requires admin authentication.</p>\n</li>\n</ul>\n</li>\n</ol>\n<p>This collection provides a comprehensive set of APIs for handling miscellaneous functionalities and social interactions on the platform, ensuring a seamless user experience.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"31843425","collectionId":"ed5b42f9-48e3-4de1-923e-d4f7d18a21f2","publishedId":"2sA2xk1BcE","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-03-13T12:58:26.000Z"},"item":[{"name":"Contact form api","id":"6997abc7-da67-4e9d-8f10-53acdac45d8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"demo","type":"text","id":0},{"key":"email","value":"mail@mail.com","type":"text","id":1},{"key":"subject","value":"for demo","type":"text","id":2},{"key":"message","value":"this is for demo purpose only","type":"text","id":3}]},"url":"{{server}}/contact","description":"<p><strong>Endpoint:</strong> POST /api/v1/contact</p>\n<p><strong>Description:</strong> This endpoint is used to submit a contact form with the provided details.</p>\n<p><strong>Request Body:</strong></p>\n<ul>\n<li><p><strong>name :</strong> The name of the person filling out the form.</p>\n</li>\n<li><p><strong>email:</strong> The email address of the person filling out the form.</p>\n</li>\n<li><p><strong>subject:</strong> The subject of the contact message.</p>\n</li>\n<li><p><strong>message:</strong> The content of the contact message.</p>\n</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><strong>200 OK:</strong> The contact form submission was successful.</li>\n<li><strong>400 Bad Request:</strong> If any of the required fields are missing in the request body.</li>\n</ul>\n<p><strong>Notes:</strong> This API endpoint is publicly accessible.</p>\n","urlObject":{"path":["contact"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"79109acd-4536-4805-abb9-2c9c274894c9","name":"Contact form api","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"demo","type":"text","id":0},{"key":"email","value":"mail@mail.com","type":"text","id":1},{"key":"subject","value":"for demo","type":"text","id":2},{"key":"message","value":"this is for demo purpose only","type":"text","id":3}]},"url":"{{server}}/contact"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"X-Powered-By","value":"Express","type":"text"},{"key":"Vary","value":"Origin","type":"text"},{"key":"Access-Control-Allow-Credentials","value":"true","type":"text"},{"key":"X-RateLimit-Limit","value":"5","type":"text"},{"key":"X-RateLimit-Remaining","value":"3","type":"text"},{"key":"Date","value":"Tue, 12 Mar 2024 12:33:04 GMT","type":"text"},{"key":"X-RateLimit-Reset","value":"1710247678","type":"text"},{"key":"Content-Type","value":"application/json; charset=utf-8","type":"text"},{"key":"Content-Length","value":"57","type":"text"},{"key":"ETag","value":"W/\"39-P7NC0qWesGt+P97KLpgEdcLdoIc\"","type":"text"},{"key":"Connection","value":"keep-alive","type":"text"},{"key":"Keep-Alive","value":"timeout=5","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Form submitted successfully!\"\n}"}],"_postman_id":"6997abc7-da67-4e9d-8f10-53acdac45d8d"},{"name":"Follow user api","id":"53e84223-60c6-44cf-b672-a453f943edc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"blogId","value":"65e0b3952caebb67117796ed","type":"text","id":0,"disabled":true},{"key":"authId","value":"65d35d2ad16f5c0562983f94","type":"text","id":1}]},"url":"{{server}}/follower/follow","description":"<p><strong>Endpoint:</strong> POST /api/v1/follower/follow</p>\n<p><strong>Description:</strong> This endpoint allows a user to follow another user on the platform.</p>\n<p><strong>Request Body:</strong></p>\n<ul>\n<li><p><strong>blogId:</strong> The ID of the blog or content the user wants to follow.</p>\n</li>\n<li><p><strong>authId:</strong> The ID of the user who is initiating the follow action.</p>\n</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><p><strong>200 OK:</strong> The follow action was successful.</p>\n</li>\n<li><p><strong>400 Bad Request:</strong> If the required fields are missing in the request body.</p>\n</li>\n</ul>\n<p><strong>Notes:</strong> This API endpoint requires the user to be logged in and verified.</p>\n","urlObject":{"path":["follower","follow"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"015e0e8a-0cb5-41d0-88bc-a7fc0dac3c20","name":"Follow user api","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"blogId","value":"65ef07795b5510e9e92ddd60","type":"text","id":0},{"key":"authId","value":"65eef6745e3bb295cfe56319","type":"text","id":1}]},"url":"{{server}}/follower/follow"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Server","value":"nginx","type":"text"},{"key":"Date","value":"Tue, 12 Mar 2024 12:35:19 GMT","type":"text"},{"key":"Content-Type","value":"application/json; charset=utf-8","type":"text"},{"key":"Content-Length","value":"50","type":"text"},{"key":"Connection","value":"keep-alive","type":"text"},{"key":"X-Powered-By","value":"Express","type":"text"},{"key":"Vary","value":"Origin","type":"text"},{"key":"Access-Control-Allow-Credentials","value":"true","type":"text"},{"key":"X-RateLimit-Limit","value":"15","type":"text"},{"key":"X-RateLimit-Remaining","value":"13","type":"text"},{"key":"X-RateLimit-Reset","value":"1710247756","type":"text"},{"key":"ETag","value":"W/\"32-uhyWpmm+osgffZr5kECW9YIAdQg\"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Followed successfully\"\n}"}],"_postman_id":"53e84223-60c6-44cf-b672-a453f943edc8"},{"name":"List Followers api","id":"347cc581-c9d5-486b-9f31-1a5f34a8914e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{server}}/followers?skip=2","description":"<p><strong>Endpoint:</strong> GET /api/v1/followers</p>\n<p><strong>Description:</strong> This endpoint retrieves a list of followers for the authenticated user.</p>\n<p><strong>Query Parameters:</strong></p>\n<ul>\n<li><strong>skip:</strong> (Optional) The number of followers to skip in the pagination. Default is 0.</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><strong>200 OK:</strong> The list of followers was successfully retrieved.</li>\n</ul>\n<p><strong>Notes:</strong> This API endpoint requires the user to be logged in.</p>\n","urlObject":{"path":["followers"],"host":["{{server}}"],"query":[{"key":"skip","value":"2"}],"variable":[]}},"response":[{"id":"88bf646a-fb91-4692-adfb-f828d357d685","name":"List Followers api","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{server}}/followers?skip=0","host":["{{server}}"],"path":["followers"],"query":[{"key":"skip","value":"0","sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Server","value":"nginx","type":"text"},{"key":"Date","value":"Tue, 12 Mar 2024 12:36:17 GMT","type":"text"},{"key":"Content-Type","value":"application/json; charset=utf-8","type":"text"},{"key":"Content-Length","value":"291","type":"text"},{"key":"Connection","value":"keep-alive","type":"text"},{"key":"X-Powered-By","value":"Express","type":"text"},{"key":"Vary","value":"Origin","type":"text"},{"key":"Access-Control-Allow-Credentials","value":"true","type":"text"},{"key":"X-RateLimit-Limit","value":"10","type":"text"},{"key":"X-RateLimit-Remaining","value":"8","type":"text"},{"key":"X-RateLimit-Reset","value":"1710247863","type":"text"},{"key":"ETag","value":"W/\"123-Aep/Iwgwfq1G9f+VBu7ne0MLzvo\"","type":"text"},{"key":"X-Cache","value":"MISS","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Followers fetched successfully\",\n    \"followers\": [\n        {\n            \"_id\": \"65f04c0784b051f87c4d34ac\",\n            \"blogId\": \"65ef07795b5510e9e92ddd60\",\n            \"userId\": \"65ef03c95b5510e9e92ddd49\",\n            \"username\": \"demo2test\",\n            \"fullName\": \"Demo mode 2\",\n            \"joinDate\": \"2024-03-11T13:14:49.737Z\"\n        }\n    ],\n    \"areMoreFollowers\": false\n}"}],"_postman_id":"347cc581-c9d5-486b-9f31-1a5f34a8914e"},{"name":"Unfollow api","id":"4017840e-df6e-4a76-8033-748eb20815f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"DELETE","header":[],"url":"{{server}}/follower/unfollow/65eb4effe8f04cbf90b1bf89","description":"<p><strong>Endpoint:</strong> DELETE /api/v1/follower/unfollow/:FollowId</p>\n<p><strong>Description:</strong> This endpoint allows a user to unfollow another user on the platform.</p>\n<p><strong>Request Parameters:</strong></p>\n<ul>\n<li><strong>FollowId:</strong> The ID of the follow relationship to be removed.</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><p><strong>200 OK:</strong> The unfollow action was successful.</p>\n</li>\n<li><p><strong>400 Bad Request:</strong> If the FollowId is missing or incorrect.</p>\n</li>\n<li><p><strong>401 Unauthorized:</strong> If the user is not authorized to perform the unfollow action.</p>\n</li>\n</ul>\n<p><strong>Notes:</strong> This API endpoint requires the user to be logged in.</p>\n","urlObject":{"path":["follower","unfollow","65eb4effe8f04cbf90b1bf89"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"ea9c739f-fae0-4c21-b3c2-a187a4db59bd","name":"Unfollow api","originalRequest":{"method":"DELETE","header":[],"url":"{{server}}/follower/unfollow/65f04c0784b051f87c4d34ac"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Server","value":"nginx","type":"text"},{"key":"Date","value":"Tue, 12 Mar 2024 12:37:11 GMT","type":"text"},{"key":"Content-Type","value":"application/json; charset=utf-8","type":"text"},{"key":"Content-Length","value":"52","type":"text"},{"key":"Connection","value":"keep-alive","type":"text"},{"key":"X-Powered-By","value":"Express","type":"text"},{"key":"Vary","value":"Origin","type":"text"},{"key":"Access-Control-Allow-Credentials","value":"true","type":"text"},{"key":"X-RateLimit-Limit","value":"15","type":"text"},{"key":"X-RateLimit-Remaining","value":"13","type":"text"},{"key":"X-RateLimit-Reset","value":"1710247918","type":"text"},{"key":"ETag","value":"W/\"34-D6B0GJmHSv1KgI2lDHQq5NhBf5s\"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Unfollowed Successfully\"\n}"}],"_postman_id":"4017840e-df6e-4a76-8033-748eb20815f1"},{"name":"Like post","id":"1c60528c-e8b0-4667-9b72-c02c11eaf097","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"{{server}}/like/65e0b3952caebb67117796ed","description":"<p><strong>Endpoint:</strong> GET /api/v1/like/:postId</p>\n<p><strong>Description:</strong> This endpoint allows a user to like a post on the platform.</p>\n<p><strong>Request Parameters:</strong></p>\n<ul>\n<li><strong>postId:</strong> The ID of the post to be liked.</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><p><strong>200 OK:</strong> The post was successfully liked.</p>\n</li>\n<li><p><strong>400 Bad Request:</strong> If the post ID is missing or incorrect.</p>\n</li>\n<li><p><strong>404 Not Found:</strong> If the specified post does not exist.</p>\n</li>\n</ul>\n<p><strong>Notes:</strong> This API endpoint requires the user to be logged in and verified.</p>\n","urlObject":{"path":["like","65e0b3952caebb67117796ed"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"486ee4b2-8644-407e-b89a-3b3786b4a650","name":"Like post","originalRequest":{"method":"GET","header":[],"url":"{{server}}/like/65ef07795b5510e9e92ddd60"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Server","value":"nginx","type":"text"},{"key":"Date","value":"Tue, 12 Mar 2024 12:37:57 GMT","type":"text"},{"key":"Content-Type","value":"application/json; charset=utf-8","type":"text"},{"key":"Content-Length","value":"275","type":"text"},{"key":"Connection","value":"keep-alive","type":"text"},{"key":"X-Powered-By","value":"Express","type":"text"},{"key":"Vary","value":"Origin","type":"text"},{"key":"Access-Control-Allow-Credentials","value":"true","type":"text"},{"key":"X-RateLimit-Limit","value":"20","type":"text"},{"key":"X-RateLimit-Remaining","value":"19","type":"text"},{"key":"X-RateLimit-Reset","value":"1710247378","type":"text"},{"key":"ETag","value":"W/\"113-44JyK1L+2nAVerrLIhXYyFanPCQ\"","type":"text"},{"key":"X-Cache","value":"MISS","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Liked the post\",\n    \"data\": {\n        \"author\": \"65eef6745e3bb295cfe56319\",\n        \"user\": \"65ef03c95b5510e9e92ddd49\",\n        \"blog\": \"65ef07795b5510e9e92ddd60\",\n        \"_id\": \"65f04ca584b051f87c4d34be\",\n        \"createdAt\": \"2024-03-12T12:37:57.863Z\",\n        \"updatedAt\": \"2024-03-12T12:37:57.863Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"1c60528c-e8b0-4667-9b72-c02c11eaf097"},{"name":"Unlike post","id":"981785dd-ee9b-4625-81ae-3819fe30c88f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"DELETE","header":[],"url":"{{server}}/dislike/65e0b3952caebb67117796ed","description":"<p><strong>Endpoint:</strong> DELETE /api/v1/dislike/:postId</p>\n<p><strong>Description:</strong> This endpoint allows a user to remove their like from a post on the platform.</p>\n<p><strong>Request Parameters:</strong></p>\n<ul>\n<li><strong>postId:</strong> The ID of the post from which the like is to be removed.</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><p><strong>200 OK:</strong> The like was successfully removed from the post.</p>\n</li>\n<li><p><strong>400 Bad Request:</strong> If the post ID is missing or incorrect.</p>\n</li>\n<li><p><strong>404 Not Found:</strong> If the specified post does not exist.</p>\n</li>\n</ul>\n<p><strong>Notes:</strong> This API endpoint requires the user to be logged in and verified.</p>\n","urlObject":{"path":["dislike","65e0b3952caebb67117796ed"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"e3b7ce68-a38d-4c27-b7b7-0bc4115373c0","name":"Unlike post","originalRequest":{"method":"DELETE","header":[],"url":"{{server}}/dislike/65ef07795b5510e9e92ddd60"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Server","value":"nginx","type":"text"},{"key":"Date","value":"Tue, 12 Mar 2024 12:38:53 GMT","type":"text"},{"key":"Content-Type","value":"application/json; charset=utf-8","type":"text"},{"key":"Content-Length","value":"44","type":"text"},{"key":"Connection","value":"keep-alive","type":"text"},{"key":"X-Powered-By","value":"Express","type":"text"},{"key":"Vary","value":"Origin","type":"text"},{"key":"Access-Control-Allow-Credentials","value":"true","type":"text"},{"key":"X-RateLimit-Limit","value":"20","type":"text"},{"key":"X-RateLimit-Remaining","value":"18","type":"text"},{"key":"X-RateLimit-Reset","value":"1710247418","type":"text"},{"key":"ETag","value":"W/\"2c-bIpcW+gQvd7elUYBUzmgAxqEaW0\"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Unliked the post\"\n}"}],"_postman_id":"981785dd-ee9b-4625-81ae-3819fe30c88f"},{"name":"List Following authors api","id":"95b011f6-0a5b-4baf-a7e3-7e04909ede80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{server}}/following?skip=1","description":"<p><strong>Endpoint:</strong> GET /api/v1/following</p>\n<p><strong>Description:</strong> This endpoint retrieves a list of authors whom the authenticated user is following.</p>\n<p><strong>Query Parameters:</strong></p>\n<ul>\n<li><strong>skip:</strong> (Optional) The number of authors to skip in the pagination. Default is 0.</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><strong>200 OK:</strong> The list of authors followed by the user was successfully retrieved.</li>\n</ul>\n<p><strong>Notes:</strong> This API endpoint requires the user to be logged in and verified.</p>\n","urlObject":{"path":["following"],"host":["{{server}}"],"query":[{"key":"skip","value":"1"}],"variable":[]}},"response":[{"id":"5fae284b-9c68-4426-98de-4c2c1d8552f0","name":"List Following authors api","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{server}}/following?skip=0","host":["{{server}}"],"path":["following"],"query":[{"key":"skip","value":"0","type":"text","id":0,"sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Server","value":"nginx","type":"text"},{"key":"Date","value":"Tue, 12 Mar 2024 12:40:17 GMT","type":"text"},{"key":"Content-Type","value":"application/json; charset=utf-8","type":"text"},{"key":"Content-Length","value":"221","type":"text"},{"key":"Connection","value":"keep-alive","type":"text"},{"key":"X-Powered-By","value":"Express","type":"text"},{"key":"Vary","value":"Origin","type":"text"},{"key":"Access-Control-Allow-Credentials","value":"true","type":"text"},{"key":"X-RateLimit-Limit","value":"25","type":"text"},{"key":"X-RateLimit-Remaining","value":"22","type":"text"},{"key":"X-RateLimit-Reset","value":"1710248051","type":"text"},{"key":"ETag","value":"W/\"dd-UiGE8/IxeHXqA1tRBG41auTX4Z4\"","type":"text"},{"key":"X-Cache","value":"MISS","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Authors you are following\",\n    \"authors\": [\n        {\n            \"_id\": \"65f04d1984b051f87c4d34ca\",\n            \"author\": [\n                {\n                    \"_id\": \"65eef6745e3bb295cfe56319\",\n                    \"username\": \"demo123\",\n                    \"firstName\": \"Demo\",\n                    \"lastName\": \"mode\"\n                }\n            ]\n        }\n    ],\n    \"areMore\": false\n}"}],"_postman_id":"95b011f6-0a5b-4baf-a7e3-7e04909ede80"},{"name":"Delete Contact form api","id":"4b0f304c-50f3-4579-a096-2ea7fd584c53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{server}}/contact/65eb4c708c01a627994aead3","description":"<p><strong>Endpoint:</strong> DELETE /api/v1/contact/:id</p>\n<p><strong>Description:</strong> This endpoint allows an admin user to delete a contact form submission from the platform.</p>\n<p><strong>Request Parameters:</strong></p>\n<ul>\n<li><strong>id:</strong> The ID of the contact form submission to be deleted.</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><p><strong>200 OK:</strong> The contact form submission was successfully deleted.</p>\n</li>\n<li><p><strong>404 Not Found:</strong> If no contact form submission with the provided ID is found.</p>\n</li>\n<li><p><strong>401 Unauthorized:</strong> If the user is not authorized to delete the contact form submission.</p>\n</li>\n</ul>\n<p><strong>Notes:</strong> This API endpoint requires the user to be logged in as an admin.</p>\n","urlObject":{"path":["contact","65eb4c708c01a627994aead3"],"host":["{{server}}"],"query":[],"variable":[]}},"response":[{"id":"dec9b1e2-a93f-49c8-85ec-65f8c4994f00","name":"Delete Contact form api","originalRequest":{"method":"DELETE","header":[],"url":"{{server}}/contact/65f04b9d84b051f87c4d349e"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Server","value":"nginx","type":"text"},{"key":"Date","value":"Tue, 12 Mar 2024 12:41:55 GMT","type":"text"},{"key":"Content-Type","value":"application/json; charset=utf-8","type":"text"},{"key":"Content-Length","value":"69","type":"text"},{"key":"Connection","value":"keep-alive","type":"text"},{"key":"X-Powered-By","value":"Express","type":"text"},{"key":"Vary","value":"Origin","type":"text"},{"key":"Access-Control-Allow-Credentials","value":"true","type":"text"},{"key":"X-RateLimit-Limit","value":"50","type":"text"},{"key":"X-RateLimit-Remaining","value":"49","type":"text"},{"key":"X-RateLimit-Reset","value":"1710248216","type":"text"},{"key":"ETag","value":"W/\"45-afz4xdzbP4ugS6vTjls9ek/v0hA\"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Deleted contact 65f04b9d84b051f87c4d349e\"\n}"}],"_postman_id":"4b0f304c-50f3-4579-a096-2ea7fd584c53"},{"name":"Get Contact form api","id":"6304cc3f-e9a4-4cb8-afc7-6c34c1bd6a59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"{{server}}/contact?skip=2","description":"<p><strong>Endpoint:</strong> GET /api/v1/contact</p>\n<p><strong>Description:</strong> This endpoint retrieves a list of contact form submissions from the platform.</p>\n<p><strong>Query Parameters:</strong></p>\n<ul>\n<li><strong>skip:</strong> (Optional) The number of contact form submissions to skip in the pagination. Default is 0.</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><strong>200 OK:</strong> The list of contact form submissions was successfully retrieved.</li>\n</ul>\n<p><strong>Notes:</strong> This API endpoint is accessible only to authenticated users who are admins.</p>\n","urlObject":{"path":["contact"],"host":["{{server}}"],"query":[{"key":"skip","value":"2"}],"variable":[]}},"response":[{"id":"08c59e74-3f99-4147-9e75-c271584f92ce","name":"Get Contact form api","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{server}}/contact?skip=0","host":["{{server}}"],"path":["contact"],"query":[{"key":"skip","value":"0","type":"text","id":0,"sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Server","value":"nginx","type":"text"},{"key":"Date","value":"Tue, 12 Mar 2024 12:41:26 GMT","type":"text"},{"key":"Content-Type","value":"application/json; charset=utf-8","type":"text"},{"key":"Content-Length","value":"527","type":"text"},{"key":"Connection","value":"keep-alive","type":"text"},{"key":"X-Powered-By","value":"Express","type":"text"},{"key":"Vary","value":"Origin","type":"text"},{"key":"Access-Control-Allow-Credentials","value":"true","type":"text"},{"key":"X-RateLimit-Limit","value":"15","type":"text"},{"key":"X-RateLimit-Remaining","value":"9","type":"text"},{"key":"X-RateLimit-Reset","value":"1710248134","type":"text"},{"key":"ETag","value":"W/\"20f-IUksCIjNmAMjbGyyywkkSe7cW8g\"","type":"text"},{"key":"X-Cache","value":"MISS","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Contacts fetched successfully\",\n    \"data\": [\n        {\n            \"_id\": \"65f04b9f84b051f87c4d34a1\",\n            \"name\": \"demo\",\n            \"email\": \"mail@mail.com\",\n            \"subject\": \"for demo\",\n            \"message\": \"this is for demo purpose only\",\n            \"createdAt\": \"2024-03-12T12:33:35.835Z\",\n            \"updatedAt\": \"2024-03-12T12:33:35.835Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"65f04b9d84b051f87c4d349e\",\n            \"name\": \"demo\",\n            \"email\": \"mail@mail.com\",\n            \"subject\": \"for demo\",\n            \"message\": \"this is for demo purpose only\",\n            \"createdAt\": \"2024-03-12T12:33:33.741Z\",\n            \"updatedAt\": \"2024-03-12T12:33:33.741Z\",\n            \"__v\": 0\n        }\n    ],\n    \"areMore\": false\n}"}],"_postman_id":"6304cc3f-e9a4-4cb8-afc7-6c34c1bd6a59"}]}