{"info":{"_postman_id":"357660ca-6c64-490d-a6cb-4b9fc1b37f4e","name":"feedback-project","description":"<html><head></head><body><p><strong>this is a project for creating posts and voting on posts with authentication system</strong></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"42604255","collectionId":"357660ca-6c64-490d-a6cb-4b9fc1b37f4e","publishedId":"2sAYdkG8Zo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-03-04T14:47:34.000Z"},"item":[{"name":"authentication","item":[{"name":"login","id":"8b7d1656-6087-4bc6-8a66-74d262945097","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\" : \"alireza\",\r\n    \"password\": \"alireza7777\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/login","description":"<p><strong>this api is for the user login with password and email or username which is the identifier field</strong></p>\n","urlObject":{"path":["v1","login"],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"8b7d1656-6087-4bc6-8a66-74d262945097"},{"name":"register","id":"3d796fda-bb7a-432b-aca1-3cdae50edb7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\" : \"alireza\",\r\n    \"email\" : \"alireza@gmail.com\",\r\n    \"password\" : \"alireza1383\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/register","description":"<p><strong>this api is for user register with username and email and password</strong></p>\n","urlObject":{"path":["v1","register"],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"3d796fda-bb7a-432b-aca1-3cdae50edb7b"},{"name":"password recovery","id":"b1e05b22-c173-4de3-98cc-25b000924b5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"alireza@gmail.com\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/forgot-password","description":"<p><strong>this api sends an email for changing your password</strong></p>\n","urlObject":{"path":["v1","forgot-password"],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"b1e05b22-c173-4de3-98cc-25b000924b5c"},{"name":"New password","id":"fea56b55-7f36-406b-8a58-6803a5e6d31f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\": \"alireza7777\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/reset-password/d879da50c42a58ded9d537fb854a85c7de455ddb849e0eae32cdd0468296a451","description":"<p><strong>this api allows you to define a new password</strong></p>\n","urlObject":{"path":["v1","reset-password","d879da50c42a58ded9d537fb854a85c7de455ddb849e0eae32cdd0468296a451"],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"fea56b55-7f36-406b-8a58-6803a5e6d31f"}],"id":"3b6efb3d-06c3-4bd7-9b09-6d1a8dce5f75","description":"<p><strong>this folder is for login , register and recovering the forgotten password</strong></p>\n","_postman_id":"3b6efb3d-06c3-4bd7-9b09-6d1a8dce5f75"},{"name":"post","item":[{"name":"add new post","id":"280fee9e-bc6f-484d-97db-3fb5233ed8ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"open-source","type":"text","uuid":"a57079bf-ab69-4e1d-b93d-23f62d3bac20"},{"key":"message","value":"Voluptatem est ipsam possimus quia qui.\nNesciunt et dignissimos fuga eligendi est eaque et cupiditate voluptas.\nMaiores corrupti laudantium omnis laborum dolor.\nConsequatur veniam aut fuga dolorem dolores aliquid excepturi.","type":"text","uuid":"b0b1f770-e306-4d26-9ac0-4dac2fb4aebc"},{"key":"image","type":"file","uuid":"f8ede440-bb90-4ec7-acb2-dcc1c73bbba5","src":"/C:/Users/Liara/Downloads/945987-1920x1200-desktop-hd-matte-black-background-photo.jpg"},{"key":"user","value":"alireza","type":"text","uuid":"ecc813dd-bcf0-4ebf-98cf-52c704793866","disabled":true}]},"url":"http://localhost:3000/api/v1/post","description":"<p><strong>this api creates a new post and save the image on liara bucket</strong></p>\n","urlObject":{"path":["v1","post"],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"280fee9e-bc6f-484d-97db-3fb5233ed8ed"},{"name":"get all the posts","id":"0835e05c-aafe-47eb-9b80-7424a5637e1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/v1/post","description":"<p><strong>this api returns all the available posts</strong></p>\n","urlObject":{"path":["v1","post"],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"0835e05c-aafe-47eb-9b80-7424a5637e1d"},{"name":"get single post","id":"64740ef7-9eeb-455e-967e-1dad24b43fc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/v1/post/67c594627bf52b9a7c9cd797","description":"<p><strong>this api returns a single post by id</strong></p>\n","urlObject":{"path":["v1","post","67c594627bf52b9a7c9cd797"],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"64740ef7-9eeb-455e-967e-1dad24b43fc1"},{"name":"delete post","id":"6ba4167a-6954-4918-bb6d-a739062496d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/api/v1/post/67c7f1664945db3382953864","description":"<p><strong>this api delete the post by id (only for owner of the post)</strong></p>\n","urlObject":{"path":["v1","post","67c7f1664945db3382953864"],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ba4167a-6954-4918-bb6d-a739062496d6"},{"name":"update post","id":"36bd8049-e75b-4ae0-bf46-756810cf17ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"update by reza","type":"text","uuid":"bc375158-54f7-4904-9d14-e6cbf680ad1f"},{"key":"message","value":"welcome to my case","type":"text","uuid":"94dd3b7e-bb44-4769-a54e-995fd2c63a96"},{"key":"image","type":"file","uuid":"621be8bb-a230-4256-b8bc-22c924164ff8","src":"/C:/Users/Liara/Downloads/945839-3840x2160-desktop-4k-matte-black-background-photo.jpg"}]},"url":"http://localhost:3000/api/v1/post/67c6d22e9acf275d3b195de5","description":"<p>this api update a post by id (only for owner of the post)</p>\n","urlObject":{"path":["v1","post","67c6d22e9acf275d3b195de5"],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"36bd8049-e75b-4ae0-bf46-756810cf17ed"},{"name":"vote post","id":"826faf25-5c32-4d42-a119-4572715fd0dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"voteType\": \"vote\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/post/vote/67c7f1664945db3382953864","description":"<p>this api vote on a post and returns 0 or 1 (you can't vote on a post twice)</p>\n","urlObject":{"path":["v1","post","vote","67c7f1664945db3382953864"],"host":["http://localhost:3000/api"],"query":[],"variable":[]}},"response":[],"_postman_id":"826faf25-5c32-4d42-a119-4572715fd0dc"}],"id":"8105bda1-1e40-4996-8dce-2a39f337aa61","description":"<p><strong>this folder is for CRUD and vote on posts</strong></p>\n","_postman_id":"8105bda1-1e40-4996-8dce-2a39f337aa61"}],"variable":[{"key":"base_url","value":"http://localhost:3000/","type":"default"}]}