{"info":{"_postman_id":"a1920c4e-e892-472d-95eb-75b093426af0","name":"Team9_Project: Todo-List","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>ToDo 리스트 API<br><code>localhost</code> 대신 <code>13.209.62.240</code>으로 바꿔서 요청해주세요</p>\n<h4 id=\"columntype\">columnType</h4>\n<p>0 = <code>TODO</code>,\n1 = <code>DOING</code>,\n2 = <code>DONE</code></p>\n<h4 id=\"action\">action</h4>\n<p>0 = <code>ADD</code>,\n1 = <code>REMOVE</code>,\n2 = <code>UPDATE</code>,\n3 = <code>MOVE</code></p>\n<h1 id=\"overview\">Overview</h1>\n<p>카드, 히스토리의 CRUD</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"}],"owner":"14857650","collectionId":"a1920c4e-e892-472d-95eb-75b093426af0","publishedId":"TzJpiKoE","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-04-14T13:26:43.000Z"},"item":[{"name":"카드생성","event":[{"listen":"prerequest","script":{"id":"80bea1d9-1703-4a54-bfaf-5ed630d14537","exec":[""],"type":"text/javascript"}}],"id":"56b9ce85-a74b-4955-8786-4482043d03c1","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"title\":\"생성 테스트 노을\",\r\n\"content\":\"내용\",\r\n\"columnType\":\"TODO\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://13.209.62.240:8080/api/cards","urlObject":{"protocol":"http","port":"8080","path":["api","cards"],"host":["13","209","62","240"],"query":[],"variable":[]}},"response":[{"id":"dfd76dcf-1ee6-401a-be29-30761924058b","name":"카드생성","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"title\":\"생성 테스트 노을\",\r\n\"content\":\"내용\",\r\n\"columnType\":\"TODO\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://13.209.62.240:8080/api/cards"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 16 Apr 2021 07:46:41 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": 16,\n        \"title\": \"생성 테스트 노을\",\n        \"content\": \"내용\",\n        \"priority\": 2,\n        \"columnType\": 0,\n        \"deleted\": false\n    },\n    \"error\": null\n}"}],"_postman_id":"56b9ce85-a74b-4955-8786-4482043d03c1"},{"name":"카드이동","id":"04fb743c-c323-4e6e-b161-426f894580cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"prevCardId\": 1,\n    \"nextCardId\": 5,\n    \"to\": \"TODO\"\n}","options":{"raw":{"language":"json"}}},"url":"http://13.209.62.240:8080/api/cards/move/4","description":"<h2 id=\"0415-추가\">04/15 추가</h2>\n<ul>\n<li>클라이언트에서 이동 후 <code>rebalanced = true</code>를 받게되면 카드 리스트 전체 출력을 해줘야 합니다!</li>\n</ul>\n<p>이동 시키고자 하는 카드ID 설정:</p>\n<ul>\n<li>URL : <code>http://localhost:8080/api/cards/move/카드id</code></li>\n</ul>\n<p>서버가 받아야 하는 Parameter:</p>\n<ul>\n<li>prevCardId: 이동시킬 위치의 위쪽 카드 Id</li>\n<li>nextCardId: 이동시킬 위치의 아래쪽 카드 Id</li>\n<li>to: 이동시킬 column</li>\n</ul>\n<ol>\n<li><p>prevCardId 만 null이 아닐 경우: preCard의 priority보다 큰 값으로 priority가 계산되어 위치합니다.</p>\n</li>\n<li><p>nextCardId 만 null이 아닐 경우: nextCard의 priority보다 작은 값으로 priority가 계산되어 위치합니다.</p>\n</li>\n<li><p>nextCardId, prevCardId 모두 null이 아닐 경우: prevCard의 priority와 nextCard의 priority의 평균값으로 priority가 계산되어 위치합니다.</p>\n</li>\n<li><p>nextCardId, prevCardId 모두 null일 경우: to 칼럼의 max priority로 계산되어 위치합니다.</p>\n</li>\n</ol>\n","urlObject":{"protocol":"http","port":"8080","path":["api","cards","move","4"],"host":["13","209","62","240"],"query":[],"variable":[]}},"response":[{"id":"70ba0f81-a00c-4321-a401-26e168cf7eb1","name":"카드이동","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"prevCardId\":1,\n    \"nextCardId\":5,\n    \"to\":\"TODO\"\n}","options":{"raw":{"language":"json"}}},"url":"http://13.209.62.240:8080/api/cards/move/4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 15 Apr 2021 09:00:36 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": 4,\n        \"title\": \"생성 테스트 노을\",\n        \"content\": \"내용\",\n        \"priority\": 3.35,\n        \"columnType\": \"TODO\",\n        \"deleted\": false,\n        \"rebalanced\": false\n    },\n    \"error\": null\n}"}],"_postman_id":"04fb743c-c323-4e6e-b161-426f894580cf"},{"name":"카드수정","id":"ee980d4f-cea5-46df-aa73-acd38c3a4414","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"수 테스트\",\r\n    \"content\": \"수정된 내용\",\r\n    \"priority\": \"1.7\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://13.209.62.240:8080/api/cards/2","description":"<p>수정 시키고자 하는 카드ID 설정:</p>\n<ul>\n<li>URL : <code>http://localhost:8080/api/cards/move/카드id</code></li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","cards","2"],"host":["13","209","62","240"],"query":[],"variable":[]}},"response":[{"id":"b56dfe74-7a65-4417-89b1-b67ac52feec9","name":"카드수정","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"수 테스트\",\r\n    \"content\": \"수정된 내용\",\r\n    \"priority\": \"1.7\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://13.209.62.240:8080/api/cards/15"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 16 Apr 2021 07:47:30 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": 15,\n        \"title\": \"수 테스트\",\n        \"content\": \"수정된 내용\",\n        \"priority\": 1,\n        \"columnType\": 0,\n        \"deleted\": false\n    },\n    \"error\": null\n}"}],"_postman_id":"ee980d4f-cea5-46df-aa73-acd38c3a4414"},{"name":"카드삭제","id":"634e2699-b086-4ace-9e3b-f2a527fa741b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/cards/1","description":"<p>삭제 하고자 하는 카드ID 설정:</p>\n<ul>\n<li>URL : <code>http://localhost:8080/api/cards/move/카드id</code></li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","cards","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6d80ef9b-7b52-4e6c-9255-41107d50c3ca","name":"카드삭제","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/cards/1"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 14 Apr 2021 12:57:55 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"634e2699-b086-4ace-9e3b-f2a527fa741b"},{"name":"카드 리스트","id":"057f6019-a68f-4725-b8b4-c2a91d7dee9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"http://13.209.62.240:8080/api/cards/todo","description":"<p>카드 리스트 보는법</p>\n<ul>\n<li>url 맨 뒤 수정</li>\n</ul>\n<h2 id=\"todo\">Todo</h2>\n<ul>\n<li>URL : <code>http://localhost:8080/api/cards/todo</code></li>\n</ul>\n<h2 id=\"doing\">Doing</h2>\n<ul>\n<li>URL :<code>http://localhost:8080/api/cards/doing</code></li>\n</ul>\n<h2 id=\"done\">Done</h2>\n<ul>\n<li>URL : <code>http://localhost:8080/api/cards/done</code></li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","cards","todo"],"host":["13","209","62","240"],"query":[],"variable":[]}},"response":[{"id":"9259e3c9-8428-44ce-9103-a817e336eee9","name":"카드 리스트","originalRequest":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"http://13.209.62.240:8080/api/cards/todo"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 16 Apr 2021 07:47:51 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 15,\n            \"title\": \"수 테스트\",\n            \"content\": \"수정된 내용\",\n            \"priority\": 1,\n            \"columnType\": 0,\n            \"deleted\": false\n        },\n        {\n            \"id\": 16,\n            \"title\": \"생성 테스트 노을\",\n            \"content\": \"내용\",\n            \"priority\": 2,\n            \"columnType\": 0,\n            \"deleted\": false\n        },\n        {\n            \"id\": 17,\n            \"title\": \"생성 테스트 노을\",\n            \"content\": \"내용\",\n            \"priority\": 3,\n            \"columnType\": 0,\n            \"deleted\": false\n        }\n    ],\n    \"error\": null\n}"}],"_postman_id":"057f6019-a68f-4725-b8b4-c2a91d7dee9a"},{"name":"유저 히스토리","id":"eb3949e0-7f8e-4a0f-b226-1a539701b555","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"http://13.209.62.240:8080/api/histories","urlObject":{"protocol":"http","port":"8080","path":["api","histories"],"host":["13","209","62","240"],"query":[],"variable":[]}},"response":[{"id":"63f80239-0a35-42a9-8214-f32ded963ed4","name":"유저 히스토리","originalRequest":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"http://13.209.62.240:8080/api/histories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Fri, 16 Apr 2021 07:48:14 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"cardTitle\": \"수 테스트\",\n            \"action\": 2,\n            \"date\": \"2021-04-16T16:47:30\",\n            \"from\": 0,\n            \"to\": null\n        },\n        {\n            \"cardTitle\": \"생성 테스트 노을\",\n            \"action\": 0,\n            \"date\": \"2021-04-16T16:47:15\",\n            \"from\": null,\n            \"to\": 0\n        },\n        {\n            \"cardTitle\": \"생성 테스트 노을\",\n            \"action\": 0,\n            \"date\": \"2021-04-16T16:46:41\",\n            \"from\": null,\n            \"to\": 0\n        },\n        {\n            \"cardTitle\": \"수 테스트\",\n            \"action\": 0,\n            \"date\": \"2021-04-16T16:46:33\",\n            \"from\": null,\n            \"to\": 0\n        },\n        {\n            \"cardTitle\": \"오늘도 모두 수고하셨습니다\",\n            \"action\": 2,\n            \"date\": \"2021-04-16T15:43:25\",\n            \"from\": 1,\n            \"to\": null\n        },\n        {\n            \"cardTitle\": \"화이팅화이팅\",\n            \"action\": 0,\n            \"date\": \"2021-04-16T15:43:01\",\n            \"from\": null,\n            \"to\": 1\n        },\n        {\n            \"cardTitle\": \"오늘도 모두 수고하셨습니다\",\n            \"action\": 0,\n            \"date\": \"2021-04-16T15:42:53\",\n            \"from\": null,\n            \"to\": 1\n        },\n        {\n            \"cardTitle\": \"비모 해야할일\",\n            \"action\": 1,\n            \"date\": \"2021-04-16T15:42:34\",\n            \"from\": 1,\n            \"to\": null\n        },\n        {\n            \"cardTitle\": \"노을 해야할일\",\n            \"action\": 1,\n            \"date\": \"2021-04-16T15:42:30\",\n            \"from\": 2,\n            \"to\": null\n        },\n        {\n            \"cardTitle\": \"노을 해야할일\",\n            \"action\": 3,\n            \"date\": \"2021-04-16T15:42:25\",\n            \"from\": 1,\n            \"to\": 2\n        },\n        {\n            \"cardTitle\": \"비모 해야할일\",\n            \"action\": 3,\n            \"date\": \"2021-04-16T15:42:16\",\n            \"from\": 0,\n            \"to\": 1\n        },\n        {\n            \"cardTitle\": \"노을 해야할일\",\n            \"action\": 3,\n            \"date\": \"2021-04-16T15:42:11\",\n            \"from\": 0,\n            \"to\": 1\n        },\n        {\n            \"cardTitle\": \"비모 해야할일\",\n            \"action\": 0,\n            \"date\": \"2021-04-16T15:42:05\",\n            \"from\": null,\n            \"to\": 0\n        },\n        {\n            \"cardTitle\": \"노을 해야할일\",\n            \"action\": 0,\n            \"date\": \"2021-04-16T15:41:55\",\n            \"from\": null,\n            \"to\": 0\n        }\n    ],\n    \"error\": null\n}"}],"_postman_id":"eb3949e0-7f8e-4a0f-b226-1a539701b555"}]}