{"info":{"_postman_id":"710f3c18-607f-44c0-ad67-298c011ecbd1","name":"WorkerWholic(WW)","description":"<html><head></head><body><ul>\n<li>Worker + Whole</li>\n<li>아르바이트 후기나 공고를 올리는 커뮤니티</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"20661979","collectionId":"710f3c18-607f-44c0-ad67-298c011ecbd1","publishedId":"2s9YeA9E8Q","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-11-21T05:07:07.000Z"},"item":[{"name":"선택 게시글 조회","event":[{"listen":"test","script":{"id":"a1466187-5722-44cd-a800-6fc8f197dba7","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"b7913ba2-b58d-4d41-aa85-166892642161","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{Jwt Token}","type":"text"}],"url":"http://localhost:8080/api/v1/posts/{postId}","description":"<ul>\n<li><p>선택한 게시글의 정보를 조회할 수 있습니다.</p>\n<ul>\n<li>반환 받은 게시글 정보에는 게시글 제목, 게시글 내용, 작성자 , 작성일 정보, 선택한 게시글의 댓글들이 있다.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","posts","{postId}"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b7913ba2-b58d-4d41-aa85-166892642161"},{"name":"게시글 추가","event":[{"listen":"test","script":{"id":"f23bb66b-3298-4f6d-936a-f8856549be87","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript"}}],"id":"2eb5c5ca-7038-4a98-b5cf-7bd2faa2822d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer%20eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJraW0iLCJhdXRoIjoiVVNFUiIsImV4cCI6MTcwMDgzMjUzNSwiaWF0IjoxNzAwODI4OTM1fQ.2IEIAQRjD2Pxi7Bw2-CNThqEhfbA0wD_MXU8VROrLjI","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"title\" : \"게시글 제목\",\n    \"image\" : \"이미지 url\",\n    \"content\" : \"게시글 내용\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/post","description":"<ul>\n<li><p>토큰을 검사하여, 유효한 토큰일 경우에만 게시글 작성 가능</p>\n</li>\n<li><p>게시글 제목,게시글 내용, 게시글 이미지를 저장할 수 있습니다</p>\n</li>\n<li><p>게시글 제목, 게시글 내용을 저장하고 저장된 게시글의 정보를 Client 로 반환하기</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","post"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2eb5c5ca-7038-4a98-b5cf-7bd2faa2822d"},{"name":"게시글 수정","event":[{"listen":"test","script":{"id":"e0ca8cf3-9867-475a-b275-a56fcebcfefc","exec":["pm.test(\"Successful PUT request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201, 204]);","});",""],"type":"text/javascript"}}],"id":"e7aaa20a-d631-414d-9e95-fe9abbbf0a70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer%20eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJraW0iLCJhdXRoIjoiVVNFUiIsImV4cCI6MTcwMDgzMzYyNSwiaWF0IjoxNzAwODMwMDI1fQ.cIVjK2kcl0ZcjWCB1U-GNEt2LW0wjkKttv-W5TNTBDw","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"title\" : \"수정할 제목\",\n    \"content\" : \"수정할 내용\",\n    \"img\" : \"수정 이미지\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/post/2","description":"<ul>\n<li>선택한 게시글 제목, 작성 내용을 수정할 수 있습니다</li>\n<li>토큰을 검사한 후, 유효한 토큰이면서 해당 사용자가 작성한 게시글만 수정 가능</li>\n<li>게시글 제목, 게시글 내용, 게시글을 수정하고 수정된 게시글 정보는 Client 로 반환됩니다</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","post","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e7aaa20a-d631-414d-9e95-fe9abbbf0a70"},{"name":"게시글 전체 조회","id":"98950611-4d4a-4faf-9bc6-f28eb9c0f67f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{Jwt Token}","type":"text"}],"url":"http://localhost:8080/api/posts","description":"<ul>\n<li>등록된 게시글 전체를 조회할 수 있습니다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","posts"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"98950611-4d4a-4faf-9bc6-f28eb9c0f67f"},{"name":"로그인","id":"55d67649-1772-4187-b1d1-c58c36d7fb67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\" : \"userId\",\n    \"password\": \"userPassword\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/users/login","description":"<ul>\n<li>username, password를 Client에서 전달받기</li>\n<li>username은 최소 4자 이상, 10자 이하이며 알파벳 소문자(a~z), 숫자(0~9)로 구성되어야 한다.</li>\n<li>password는 최소 8자 이상, 15자 이하이며 알파벳 대소문자(a~z, A~Z), 숫자(0~9)로 구성되어야 한다.</li>\n<li>DB에 중복된 username이 없다면 회원을 저장하고 Client 로 성공했다는 메시지, 상태코드 반환하기</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","users","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"55d67649-1772-4187-b1d1-c58c36d7fb67"},{"name":"회원가입","id":"e7eb4b86-038f-4f2a-aa86-b2460e6ad819","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\" : \"kim\",\n    \"password\": \"1234\",\n    \"email\": \"kim@naver.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/user/signup","description":"<ul>\n<li><p>username, password, 위치 정보, 자기소개를 Client에서 전달받기</p>\n</li>\n<li><p>중복 확인 후 저장한다</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","user","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e7eb4b86-038f-4f2a-aa86-b2460e6ad819"},{"name":"댓글 추가","id":"4cea21d8-1595-4afc-99a9-9d51d6bf8214","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{Jwt Token}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\" : \"Post Id\",\n    \"text\" : \"댓글 내용\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/comments","description":"<ul>\n<li><p>토큰을 검사하여, 유효한 토큰일 경우에만 댓글 작성 가능</p>\n</li>\n<li><p>선택한 할일의 DB 저장 유무를 확인하기</p>\n</li>\n<li><p>선택한 할일이 있다면 댓글을 등록하고 등록된 댓글 반환하기</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","comments"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4cea21d8-1595-4afc-99a9-9d51d6bf8214"},{"name":"댓글 수정","id":"eef5705d-a20d-4a3b-b90a-08eef806bf42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{Jwt Token}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"text\" : \"수정내용\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/comments/{commentId}","description":"<ul>\n<li><p>토큰을 검사한 후, 유효한 토큰이면서 해당 사용자가 작성한 댓글만 수정 가능</p>\n</li>\n<li><p>선택한 댓글의 DB 저장 유무를 확인하기</p>\n</li>\n<li><p>선택한 댓글이 있다면 댓글 수정하고 수정된 댓글 반환하기</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","comments","{commentId}"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"eef5705d-a20d-4a3b-b90a-08eef806bf42"},{"name":"댓글 삭제","id":"18d1c70c-35aa-4871-af56-9413e3f2b321","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{Jwt Token}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/comments/{commentId}","description":"<ul>\n<li><p>토큰을 검사한 후, 유효한 토큰이면서 해당 사용자가 작성한 댓글만 삭제 가능</p>\n</li>\n<li><p>선택한 댓글의 DB 저장 유무를 확인하기</p>\n</li>\n<li><p>선택한 댓글이 있다면 댓글 삭제하고 Client 로 성공했다는 메시지, 상태코드 반환하기</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","comments","{commentId}"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"18d1c70c-35aa-4871-af56-9413e3f2b321"},{"name":"지역별 게시글 조회","id":"5ff38e24-30b8-4ff2-8634-edc5496a8edf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{Jwt Token}","type":"text"}],"url":"http://localhost:8080/api/posts/location","urlObject":{"protocol":"http","port":"8080","path":["api","posts","location"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ff38e24-30b8-4ff2-8634-edc5496a8edf"},{"name":"회원정보 조회","id":"6e6bb161-8b3a-4569-8735-4ef1e98fc79d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{Jwt Token}","type":"text"}],"url":"http://localhost:8080/api/users","description":"<ul>\n<li><p>로그인한 유저의 회원정보를 반환한다.</p>\n</li>\n<li><p>JWT토큰을 통해 요청</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e6bb161-8b3a-4569-8735-4ef1e98fc79d"},{"name":"유저게시글조회","id":"a04e54a0-da63-4d2c-b284-bfb6d32662a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"a04e54a0-da63-4d2c-b284-bfb6d32662a4"},{"name":"New Request","id":"5ee13f30-e1d5-4791-9a66-8374acff8a50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"5ee13f30-e1d5-4791-9a66-8374acff8a50"},{"name":"게시글 삭제","id":"5a36eb7f-0011-4dbf-8222-aa344062bfd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer%20eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJraW0iLCJhdXRoIjoiVVNFUiIsImV4cCI6MTcwMDgzMzYyNSwiaWF0IjoxNzAwODMwMDI1fQ.cIVjK2kcl0ZcjWCB1U-GNEt2LW0wjkKttv-W5TNTBDw","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/post/5","urlObject":{"protocol":"http","port":"8080","path":["api","post","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5a36eb7f-0011-4dbf-8222-aa344062bfd4"}]}