{"info":{"_postman_id":"d593677a-5cd6-423e-b41d-536b748e9ef3","name":"foco","description":"<html><head></head><body><p>\bfoco post api</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"16841571","collectionId":"d593677a-5cd6-423e-b41d-536b748e9ef3","publishedId":"2s8Z6u5usD","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-12-22T15:15:42.000Z"},"item":[{"name":"글","item":[{"name":"글 등록","id":"607195ab-7331-41ee-be3b-2c9ac54f9f52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"ref ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"user\": \"rabbitkim\",\n    \"storeName\": \"breeto\",\n    \"grade\": 5,\n    \"img\": \"rabbit\",\n    \"review\": \"it's good\",\n    \"city\": \"MexicoCity\",\n    \"country\": \"Mexico\",\n    \"address\": \"Mexico\",\n    \"likeCount\": 0,\n    \"likeUsers\": [],\n    \"lat\": 136,\n    \"lng\": 240,\n    \"mood\": [\"fantastic\", \"club\"],\n    \"foodType\":[\"bread\", \"cola\"]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/post","urlObject":{"protocol":"http","port":"3000","path":["post"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"50df9dda-bd4c-4bdc-af09-d0aa7711c8ff","name":"글 등록","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": \"rabbitkim\",\n    \"storeName\": \"bergerking\",\n    \"grade\": 5,\n    \"img\": \"rabbit\",\n    \"review\": \"it's good\",\n    \"city\": \"seoul\",\n    \"country\": \"korea\",\n    \"address\": \"seoul\",\n    \"price\": 50000,\n    \"like\": \"0\",\n    \"lat\": 136,\n    \"lng\": 240,\n    \"mood\":\"berger, drink, cola, fast\",\n    \"foodType\":\"fastfood\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/post"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"392"},{"key":"ETag","value":"W/\"188-I85WM4jpbDg8M4tFry563yv+dyA\""},{"key":"Date","value":"Thu, 22 Dec 2022 11:24:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"post\": {\n        \"user\": \"rabbitkim\",\n        \"storeName\": \"bergerking\",\n        \"grade\": 5,\n        \"img\": [\n            \"rabbit\"\n        ],\n        \"review\": \"it's good\",\n        \"city\": \"seoul\",\n        \"country\": \"korea\",\n        \"address\": \"seoul\",\n        \"price\": 50000,\n        \"like\": [\n            \"0\"\n        ],\n        \"lat\": 136,\n        \"lng\": 240,\n        \"foodType\": [\n            \"fastfood\"\n        ],\n        \"mood\": [\n            \"berger, drink, cola, fast\"\n        ],\n        \"_id\": \"63a43e6916f514251efb0eeb\",\n        \"createdAt\": \"2022-12-22T11:24:25.690Z\",\n        \"updatedAt\": \"2022-12-22T11:24:25.690Z\",\n        \"postNum\": 4,\n        \"__v\": 0\n    }\n}"}],"_postman_id":"607195ab-7331-41ee-be3b-2c9ac54f9f52"},{"name":"글 이미지 업로드","id":"6952f100-db41-4b66-9e6f-cb5ae8d332e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"images","type":"file","src":"/Users/hanseungjoo/Desktop/sample_image.png"},{"key":"images","type":"file","src":"/Users/hanseungjoo/Desktop/Screen Shot 2022-12-22 at 5.01.33 PM.png"},{"key":"images","type":"file","src":"/Users/hanseungjoo/Desktop/Screen Shot 2022-12-22 at 7.19.39 PM.png"}]},"url":"http://localhost:3000/post/upload","urlObject":{"protocol":"http","port":"3000","path":["post","upload"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6952f100-db41-4b66-9e6f-cb5ae8d332e3"},{"name":"전체 \b글 조회, 나라별, 도시별, mood, foodtype 조회","id":"2affc807-3ad1-4465-83d3-3146ffee99e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"country\":\"South Korea\",\n    \"city\" :\"Busan\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/post","urlObject":{"protocol":"http","port":"3000","path":["post"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2affc807-3ad1-4465-83d3-3146ffee99e7"},{"name":"글 하나 조회","id":"49274c53-1ae1-4490-94cb-aba5e0c39fad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/post/:postNum","urlObject":{"protocol":"http","port":"3000","path":["post",":postNum"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"2","key":"postNum"}]}},"response":[],"_postman_id":"49274c53-1ae1-4490-94cb-aba5e0c39fad"},{"name":"글 나라별 좋아요 순 정렬 조회","id":"e9da7543-cdaa-4f3a-afb9-b6ae6de5e46c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"e9da7543-cdaa-4f3a-afb9-b6ae6de5e46c"},{"name":"글 하나 삭제","id":"e0348c32-4079-4aec-b1d7-d7694532480e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"http://localhost:3000/post/:postNum","urlObject":{"protocol":"http","port":"3000","path":["post",":postNum"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"postNum"}]}},"response":[{"id":"931dc26b-9c0f-4474-8da3-cbeaf903a8ec","name":"글 하나 삭제","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3000/post/:id","protocol":"http","host":["localhost"],"port":"3000","path":["post",":id"],"variable":[{"key":"id","value":"639c2118f7eae7f29932887e"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"38"},{"key":"ETag","value":"W/\"26-fgR5yLHQ1Hpp6zDESHaY9wJreYE\""},{"key":"Date","value":"Sat, 17 Dec 2022 05:44:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"acknowledged\": true,\n    \"deletedCount\": 1\n}"}],"_postman_id":"e0348c32-4079-4aec-b1d7-d7694532480e"},{"name":"글 수정","id":"43db257e-5a19-4b25-8050-d6ea6986e516","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": \"rabbitkkim\",\n    \"storeName\": \"BergerKing\",\n    \"grade\": 5.0,\n    \"img\": \"tttttwt\",\n    \"review\": \"it's good\",\n    \"city\": \"seoul\",\n    \"country\": \"korea\",\n    \"address\": \"seoul\",\n    \"price\": 50010,\n    \"like\": \"0\",\n    \"lat\": 136,\n    \"lng\": 240,\n    \"mood\":\"berger, drink, cola, fast, slow\",\n    \"foodType\":\"fastfood, berger\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/post/1","urlObject":{"protocol":"http","port":"3000","path":["post","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"43db257e-5a19-4b25-8050-d6ea6986e516"},{"name":"글 좋아요","id":"49853eaf-e5c9-45a8-82b5-5c11db8026ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"userNum\": \"2\",\n    \"postNum\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/post/like","urlObject":{"protocol":"http","port":"3000","path":["post","like"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"49853eaf-e5c9-45a8-82b5-5c11db8026ef"},{"name":"글 좋아요 취소","id":"03aaf034-99b4-4ad3-aea8-83b3a932068a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"userNum\": \"2\",\n    \"postNum\": \"4\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/post/like","urlObject":{"protocol":"http","port":"3000","path":["post","like"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"03aaf034-99b4-4ad3-aea8-83b3a932068a"},{"name":"글 좋아요 카운트 조회","id":"d6df1b7f-14bc-4cb3-addc-c5f514ee8c93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/post/like/:postNum","urlObject":{"protocol":"http","port":"3000","path":["post","like",":postNum"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"5","key":"postNum"}]}},"response":[],"_postman_id":"d6df1b7f-14bc-4cb3-addc-c5f514ee8c93"},{"name":"New Request","id":"7570c468-212e-4712-8aaf-f2e0b58d9da9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"7570c468-212e-4712-8aaf-f2e0b58d9da9"}],"id":"3f26d1de-e97f-47f6-8b42-3f325577d596","_postman_id":"3f26d1de-e97f-47f6-8b42-3f325577d596","description":""},{"name":"찜하기(bookmark)","item":[{"name":"찜하기","id":"a20229ca-b52c-4a90-8919-952bc0acd364","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"a20229ca-b52c-4a90-8919-952bc0acd364"},{"name":"\b찜목록에서 나라별로, 도시별, mood, foodtype 조회","id":"2f9c42fd-8cdc-43a5-93f7-fa58e348ae62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"2f9c42fd-8cdc-43a5-93f7-fa58e348ae62"},{"name":"찜 삭제","id":"58bbb41d-5607-45e5-a00f-d9f7d6db622e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"rabbitkim@gmail.com\",\n    \"postNum\":\"20\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/bookmark","urlObject":{"protocol":"http","port":"3000","path":["bookmark"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"58bbb41d-5607-45e5-a00f-d9f7d6db622e"}],"id":"050bb018-9a61-4e3f-8f6a-b3097e857bfe","_postman_id":"050bb018-9a61-4e3f-8f6a-b3097e857bfe","description":""},{"name":"유저","item":[{"name":"\b회원가입","id":"6b54b3ca-e95f-4486-b8c2-27c8bf1172e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"rabbitkim@gmail.com\",\n    \"name\": \"김토끼\",\n    \"password\": \"달토끼369\",\n    \"country\":\"Argentina\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/user/register","urlObject":{"protocol":"http","port":"3000","path":["user","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b54b3ca-e95f-4486-b8c2-27c8bf1172e7"},{"name":"로그인","id":"315a8278-b950-4ea5-9bf4-d9e18979947e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"sunny@gmail.com\",\n    \"password\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/user/login","urlObject":{"protocol":"http","port":"3000","path":["user","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"315a8278-b950-4ea5-9bf4-d9e18979947e"},{"name":"유저남바로 유저가 쓴 글 모두 조회","id":"b3e8ab02-ffc8-4f21-b87a-2b90709e0398","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"acc eyJhbGciOiJIUzI1NiIsIR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImthaWxleUBnbWFpbC5jb20iLCJjb3VudHJ5IjoidXNlciIsImlhdCI6MTY3MjA2NDc0MiwiZXhwIjoxNjcyMDY0ODAyfQ.cH3_ZRp8-3OhZ9AdmMuCx3Lr8Jjxki0y58QJO0OoV8","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:3000/user/:userNum","urlObject":{"protocol":"http","port":"3000","path":["user",":userNum"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"16","key":"userNum"}]}},"response":[],"_postman_id":"b3e8ab02-ffc8-4f21-b87a-2b90709e0398"},{"name":"유저 정보 수정","id":"e2f861d1-6729-4616-838d-fef78afc8c6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"rabbitkim@gmail.com\",\n    \"name\": \"김토끼\",\n    \"password\": \"달토끼369\",\n    \"country\":\"Brazil\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/user/:userNum","urlObject":{"protocol":"http","port":"3000","path":["user",":userNum"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"2","key":"userNum"}]}},"response":[],"_postman_id":"e2f861d1-6729-4616-838d-fef78afc8c6a"},{"name":"유저가 쓴 글 유저 디비에 추가","id":"257bfb42-b5ed-4b15-ad88-2759111e4834","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:3000/user/:id/:userNum","urlObject":{"protocol":"http","port":"3000","path":["user",":id",":userNum"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"63a97704a4c609fb368ef022","key":"id"},{"type":"any","value":"16","key":"userNum"}]}},"response":[],"_postman_id":"257bfb42-b5ed-4b15-ad88-2759111e4834"},{"name":"탈퇴","id":"d0eeca1a-e637-497f-b502-b76933c4ab47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3000/user/:userNum","urlObject":{"protocol":"http","port":"3000","path":["user",":userNum"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"userNum"}]}},"response":[],"_postman_id":"d0eeca1a-e637-497f-b502-b76933c4ab47"},{"name":"유저 이미지 업로드(한장)","id":"1f5132a0-c6b4-4254-b7e7-0bf7e24d0aa3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","src":"/Users/hanseungjoo/Downloads/wallpaperbetter.com_3840x2160.jpg"}]},"url":"http://localhost:3000/user/upload","urlObject":{"protocol":"http","port":"3000","path":["user","upload"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f5132a0-c6b4-4254-b7e7-0bf7e24d0aa3"},{"name":"유저 비번 수정","id":"5508d3de-a93c-41f2-b0ed-e3114f0ac679","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"email\" :\"hdd@gmail.com\",\n    \"password\": \"달토끼369\",\n    \"newPassword\": \"abc123\",\n    \"newPassword2\": \"abc123\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/user/password","urlObject":{"protocol":"http","port":"3000","path":["user","password"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5508d3de-a93c-41f2-b0ed-e3114f0ac679"},{"name":"유저 비밀번호 초기화(메일 전송)","id":"f12be5d0-f274-45cc-8cde-458b1578bd3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"f12be5d0-f274-45cc-8cde-458b1578bd3f"}],"id":"b521fd8c-eeff-4022-869d-91cfe5553703","_postman_id":"b521fd8c-eeff-4022-869d-91cfe5553703","description":""}]}