{"info":{"_postman_id":"1c1ce0a9-3674-412f-bc4f-260b0da244e4","name":"WAD API 명세","description":"<html><head></head><body><p>로그인 / 회원가입 / 일정 게시판/ 일반 게시판</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"28467558","collectionId":"1c1ce0a9-3674-412f-bc4f-260b0da244e4","publishedId":"2sAXjGcZqr","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-27T06:07:01.000Z"},"item":[{"name":"회원가입","id":"6b4c19b1-16af-4443-a524-6492331e50e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://43.203.243.173:8080/join?UserId=gju&email=ccc@ccc.com&username=yukr2&password=2222","description":"<p>기본 url : <a href=\"http://43.203.243.173:8080/join\">http://43.203.243.173:8080/join</a><br />필요한 파라미터 : UserId, email(@.com형태만), username, password</p>\n<p>-&gt; 모두 string 타입이며 , 길이는 20자 제한</p>\n<p>조건 : 모든 정보 중복 불가 , 그 외 다른 조건 없음</p>\n<p>예외처리 : 중복 정보 발생시 바디에 \"이미 존재하는 아이디입니다\" 출력</p>\n","urlObject":{"protocol":"http","port":"8080","path":["join"],"host":["43","203","243","173"],"query":[{"key":"UserId","value":"gju"},{"key":"email","value":"ccc@ccc.com"},{"key":"username","value":"yukr2"},{"key":"password","value":"2222"}],"variable":[]}},"response":[{"id":"f4feae39-0182-48f3-9a52-d8fac0b0f5cf","name":"회원가입","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://43.203.243.173:8080/join?UserId=gju&email=ccc@ccc.com&username=yukr2&password=2222","protocol":"http","host":["43","203","243","173"],"port":"8080","path":["join"],"query":[{"key":"UserId","value":"gju"},{"key":"email","value":"ccc@ccc.com"},{"key":"username","value":"yukr2"},{"key":"password","value":"2222"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"6b4c19b1-16af-4443-a524-6492331e50e8"},{"name":"로그인","id":"21f307bf-9575-45cb-8c42-50f6b98c3cf0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://43.203.243.173:8080/login?username=yukr2&password=2222","description":"<p>기본 URL : <a href=\"http://43.203.243.173:8080/login\">http://43.203.243.173:8080/login</a></p>\n<p>필요 파라미터 : username, password</p>\n<p>예외 없이 로그인에 성공하면 해당유저의 토큰이 발급되고 해당 토큰은 header에 저장된다.</p>\n<p>예외 처리 : 로그인 정보가 올바른 경우 토큰 생성 및 저장 -&gt; 콘솔에 \"성공\" 출력,</p>\n<p>생성된 refresh토큰에 유저 닉네임(username) 저장</p>\n<p>실패시 401에러와 함께 콘솔에 \"실패\" 출력</p>\n","urlObject":{"protocol":"http","port":"8080","path":["login"],"host":["43","203","243","173"],"query":[{"key":"username","value":"yukr2"},{"key":"password","value":"2222"}],"variable":[]}},"response":[{"id":"64f7dc43-35dc-476e-89b4-6eacf03300fa","name":"로그인","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://43.203.243.173:8080/login?username=yukr2&password=2222","protocol":"http","host":["43","203","243","173"],"port":"8080","path":["login"],"query":[{"key":"username","value":"yukr2"},{"key":"password","value":"2222"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"21f307bf-9575-45cb-8c42-50f6b98c3cf0"},{"name":"로그아웃","id":"16de2fff-16b8-4ede-b05a-a8e1d8461e51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://43.203.243.173:8080/logout","description":"<p>로그아웃 실행 시 저장되어있던 refresh토큰 삭제</p>\n","urlObject":{"protocol":"http","port":"8080","path":["logout"],"host":["43","203","243","173"],"query":[],"variable":[]}},"response":[{"id":"3575279f-db14-421f-9e64-23256974ed5e","name":"로그아웃","originalRequest":{"method":"POST","header":[],"url":"http://43.203.243.173:8080/logout"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"16de2fff-16b8-4ede-b05a-a8e1d8461e51"},{"name":"게시물 생성(일정 게시판)","id":"021e06b4-918c-479e-b197-a5b362b576bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"일정 게시물 제목\",\r\n    \"type\": \"프론트엔드\",\r\n    \"dateRanges\": [\r\n        {\r\n            \"startDate\": \"2024.08.26\",\r\n            \"endDate\": \"2024.08.27\",\r\n            \"content\": \"일정 1의 내용.\"\r\n        },\r\n        {\r\n            \"startDate\": \"2024.08.29\",\r\n            \"endDate\": \"2024.09.01\",\r\n            \"content\": \"일정 2의 내용.\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://43.203.243.173:8080/schedule/save","description":"<p>필요한 body 정보 : title, type(기획,디자인,프론트엔드,백엔드 고정),</p>\n<p>dateRanges(시작일자,종료일자, 내용)</p>\n<p>dateRanges는 json 문자열 형태로 저장</p>\n<p>예외처리 : refresh토큰이 없는 경우(로그인X) , refrsh토큰에 저장된 유저 정보와 멤버 엔티티 내 유저정보가 다른경우(작성자와 로그인된 사용자가 다름) -&gt; 콘솔에 에러로그 출력</p>\n<p>유의 사항 : dateRanges는 반드시 예시 형태를 맞춰야하며 json형태로 변환하여 서버로 전송하는 코드를 포함해야함</p>\n","urlObject":{"protocol":"http","port":"8080","path":["schedule","save"],"host":["43","203","243","173"],"query":[],"variable":[]}},"response":[{"id":"6e06133f-640d-4ee0-aba3-654322b1fe6b","name":"게시물 생성(일정 게시판)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"일정 게시물 제목\",\r\n    \"type\": \"프론트엔드\",\r\n    \"dateRanges\": [\r\n        {\r\n            \"startDate\": \"2024.08.26\",\r\n            \"endDate\": \"2024.08.27\",\r\n            \"content\": \"일정 1의 내용.\"\r\n        },\r\n        {\r\n            \"startDate\": \"2024.08.29\",\r\n            \"endDate\": \"2024.09.01\",\r\n            \"content\": \"일정 2의 내용.\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://43.203.243.173:8080/schedule/save"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"021e06b4-918c-479e-b197-a5b362b576bb"},{"name":"전체 게시물 조회(일정 게시판)","id":"d139401a-f338-4a34-8fe9-92973a68e6e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://43.203.243.173:8080/schedule/posts","description":"<p>현재 작성된 모든 게시물 리스트를 조회하는 것이므로 특별한 인증과정 없음</p>\n","urlObject":{"protocol":"http","port":"8080","path":["schedule","posts"],"host":["43","203","243","173"],"query":[],"variable":[]}},"response":[{"id":"0d9a1d60-b100-42eb-aae3-b5c10ba44f00","name":"전체 게시물 조회(일정 게시판)","originalRequest":{"method":"GET","header":[],"url":"http://43.203.243.173:8080/schedule/posts"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d139401a-f338-4a34-8fe9-92973a68e6e5"},{"name":"상세 게시물 조회(일정 게시판)","id":"8123e919-5210-4938-a060-e323d4e901b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://43.203.243.173:8080/schedule/post/2","description":"<p><a href=\"http://43.203.243.173:8080/schedule/post/2(%ED%95%B4%EB%8B%B9)%EA%B2%8C%EC%8B%9C%EB%AC%BC%EC%95%84%EC%9D%B4%EB%94%94\">http://43.203.243.173:8080/schedule/post/{</a>scpostId<a href=\"http://43.203.243.173:8080/schedule/post/2(%ED%95%B4%EB%8B%B9)%EA%B2%8C%EC%8B%9C%EB%AC%BC%EC%95%84%EC%9D%B4%EB%94%94\">}</a></p>\n<p>마지막 숫자는 해당 게시물의 아이디(scpostId)이며, 게시물이 존재하지 않을시 404에러 출력</p>\n","urlObject":{"protocol":"http","port":"8080","path":["schedule","post","2"],"host":["43","203","243","173"],"query":[],"variable":[]}},"response":[{"id":"19519d81-ecce-4294-89ea-cbed6056cbf7","name":"상세 게시물 조회(일정 게시판)","originalRequest":{"method":"GET","header":[],"url":"http://43.203.243.173:8080/schedule/post/2"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"8123e919-5210-4938-a060-e323d4e901b2"},{"name":"게시물 수정(일정 게시판)","id":"a642fe6f-a0e6-480f-84e1-4e22f103c7e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"수정된 일정 게시물 제목\",\r\n    \"type\": \"프론트엔드\",\r\n    \"dateRanges\": [\r\n        {\r\n            \"startDate\": \"2024.08.26\",\r\n            \"endDate\": \"2024.08.27\",\r\n            \"content\": \"수정된 일정 1의 내용.\"\r\n        },\r\n        {\r\n            \"startDate\": \"2024.08.29\",\r\n            \"endDate\": \"2024.09.01\",\r\n            \"content\": \"수정된 일정 2의 내용.\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://43.203.243.173:8080/schedule/post/2","description":"<p>마찬가지로 마지막 숫자는 수정하고자하는 게시물의 아이디(scpostId)</p>\n<p>필요한 body 정보 : title, type(기획,디자인,프론트엔드,백엔드 고정),</p>\n<p>dateRanges(시작일자,종료일자, 내용) -&gt; 수정된 내용</p>\n<p>-예외처리</p>\n<p>refresh토큰이 없는경우 -&gt; 로그인 에러</p>\n<p>해당 게시물이 존재하지 않는 경우 -&gt; \"게시물이 존재하지 않습니다.\" 출력</p>\n<p>게시물의 작성자와 현재 로그인한 유저의 정보가 다른 경우 -&gt; \"수정 권한이 없습니다 .\" 출력</p>\n","urlObject":{"protocol":"http","port":"8080","path":["schedule","post","2"],"host":["43","203","243","173"],"query":[],"variable":[]}},"response":[{"id":"a2249251-a65e-4093-950f-89b9a78c5a42","name":"게시물 수정(일정 게시판)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"수정된 일정 게시물 제목\",\r\n    \"type\": \"프론트엔드\",\r\n    \"dateRanges\": [\r\n        {\r\n            \"startDate\": \"2024.08.26\",\r\n            \"endDate\": \"2024.08.27\",\r\n            \"content\": \"수정된 일정 1의 내용.\"\r\n        },\r\n        {\r\n            \"startDate\": \"2024.08.29\",\r\n            \"endDate\": \"2024.09.01\",\r\n            \"content\": \"수정된 일정 2의 내용.\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://43.203.243.173:8080/schedule/post/2"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"a642fe6f-a0e6-480f-84e1-4e22f103c7e3"},{"name":"게시물 삭제(일정 게시판)","id":"82cdfd15-b5c4-45c6-8989-6bda36c95ec4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://43.203.243.173:8080/schedule/post/2","description":"<p>마찬가지로 마지막 숫자는 삭제하고자하는 게시물의 아이디(scpostId)</p>\n<p>-예외처리</p>\n<p>refresh토큰이 없는경우 -&gt; 로그인 에러</p>\n<p>해당 게시물이 존재하지 않는 경우 -&gt; \"게시물이 존재하지 않습니다.\" 출력</p>\n<p>게시물의 작성자와 현재 로그인한 유저의 정보가 다른 경우 -&gt; \"삭제 권한이 없습니다 .\" 출력</p>\n<p>삭제 성공 시 boolean타입으로 success : true 출력</p>\n","urlObject":{"protocol":"http","port":"8080","path":["schedule","post","2"],"host":["43","203","243","173"],"query":[],"variable":[]}},"response":[{"id":"06a73fb3-0bf7-4d77-b2a1-bf9d112fbfb2","name":"게시물 삭제(일정 게시판)","originalRequest":{"method":"DELETE","header":[],"url":"http://43.203.243.173:8080/schedule/post/2"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"82cdfd15-b5c4-45c6-8989-6bda36c95ec4"},{"name":"게시물 생성(일반 게시판)","id":"b7f15b02-0d37-45db-a2d9-e7497ab018ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"일반 게시물 제목\",\r\n    \"type\": \"프론트엔드\",\r\n    \"content\": \"일반 게시물 내용\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://43.203.243.173:8080/board/save","description":"<p>일정과 모두 동일하나 content만 일반 문자열형태로 변경됌</p>\n","urlObject":{"protocol":"http","port":"8080","path":["board","save"],"host":["43","203","243","173"],"query":[],"variable":[]}},"response":[],"_postman_id":"b7f15b02-0d37-45db-a2d9-e7497ab018ac"},{"name":"전체 게시물 조회(일반 게시판)","id":"4d49965a-17b2-4889-adfa-d1ff68047199","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://43.203.243.173:8080/board/posts","description":"<p>schedule -&gt; board 로 변경된 점 외에 일정과 동일</p>\n","urlObject":{"protocol":"http","port":"8080","path":["board","posts"],"host":["43","203","243","173"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d49965a-17b2-4889-adfa-d1ff68047199"},{"name":"상세 게시물 조회(일반 게시판)","id":"2e62eb66-f323-4c99-9e21-202ac3eb68ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://43.203.243.173:8080/board/post/1","description":"<p>schedule -&gt; board 로 변경</p>\n<p>scpostId -&gt; boardPostId 로 변경</p>\n<p>나머지는 동일함</p>\n","urlObject":{"protocol":"http","port":"8080","path":["board","post","1"],"host":["43","203","243","173"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e62eb66-f323-4c99-9e21-202ac3eb68ef"},{"name":"마이페이지 최종","id":"17b59d54-30e3-4282-98e5-e5d8d4931464","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://43.203.243.173:8080/mypage/info","description":"<p>인증방식은 게시물 생성과 동일하게 access토큰을 가져와서 현재 로그인한 유저 인증</p>\n<p>마이페이지 조회 시 로그인한 유저의 username과 작성한 일반/일정 게시물 조회</p>\n<p>응답형태는 예시처럼 일반게시물은 boards / 일정게시물은 scposts라는 카테고리 아래에 응답</p>\n<p>아래에 Authorization Bearer Token은 포스트맨에서 access토큰을 사용한 인증방식을 나타낸것이므로</p>\n<p>신경 쓸 필요없음</p>\n","urlObject":{"protocol":"http","port":"8080","path":["mypage","info"],"host":["43","203","243","173"],"query":[],"variable":[]}},"response":[{"id":"14cff389-6aec-4075-a967-e17773426f83","name":"마이페이지 최종","originalRequest":{"method":"GET","header":[],"url":"http://43.203.243.173:8080/mypage/info"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 17 Sep 2024 07:27:39 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"username\": \"yukr\",\n    \"boards\": [\n        {\n            \"boardpostid\": 5,\n            \"title\": \"마이페이지 테스트\",\n            \"type\": \"기획\",\n            \"content\": \"마페 테스트 내용\",\n            \"username\": \"yukr\",\n            \"createdAt\": \"2024-09-15T06:51:20.147194\",\n            \"modifiedAt\": \"2024-09-15T06:51:20.147194\"\n        }\n    ],\n    \"scPosts\": [\n        {\n            \"scpostid\": 1,\n            \"title\": \"마이페이지 일정 테스트\",\n            \"createdAt\": \"2024-09-17T07:14:38.925297\",\n            \"modifiedAt\": \"2024-09-17T07:14:38.925297\",\n            \"type\": \"디자인\",\n            \"dateRanges\": [\n                {\n                    \"startDate\": \"2024.09.17\",\n                    \"endDate\": \"2024.09.27\",\n                    \"content\": \"일정 1의 내용.\"\n                },\n                {\n                    \"startDate\": \"2024.08.29\",\n                    \"endDate\": \"2024.09.01\",\n                    \"content\": \"일정 2의 내용.\"\n                }\n            ],\n            \"username\": \"yukr\"\n        }\n    ]\n}"}],"_postman_id":"17b59d54-30e3-4282-98e5-e5d8d4931464"}]}