{"info":{"_postman_id":"da78118a-9533-449d-8954-9922524e910b","name":"Habit","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>습관을 등록,수정,삭제 할 수 있으며 오늘 날짜에 습관을 이행했는지 체크하는 API</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>Spring Security + JWT</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>4XX, 5XX</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"}],"owner":"25320340","collectionId":"da78118a-9533-449d-8954-9922524e910b","publishedId":"2s93RWQXTo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-04-04T07:34:03.000Z"},"item":[{"name":"습관 조회","id":"770513ed-1c7f-4b55-b634-53def5216f46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/habits","urlObject":{"protocol":"http","port":"8080","path":["habits"],"host":["localhost"],"query":[{"disabled":true,"key":"date","value":"2023-04"}],"variable":[]}},"response":[{"id":"e0a0811b-6f08-4499-b625-18f988a0d960","name":"습관 등록","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/habits?date=2023-04","protocol":"http","host":["localhost"],"port":"8080","path":["habits"],"query":[{"key":"date","value":"2023-04"}]}},"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":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 04 Apr 2023 07:15:36 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 10,\n        \"content\": \"약먹자\",\n        \"habitChecks\": [\n            {\n                \"id\": 29,\n                \"updatedAt\": \"2023-04-01T01:07:45.814115\"\n            }\n        ],\n        \"createDate\": \"2023-04-01T00:18:36.239559\"\n    },\n    {\n        \"id\": 11,\n        \"content\": \"약먹자 3월버전\",\n        \"habitChecks\": [\n            {\n                \"id\": 30,\n                \"updatedAt\": \"2023-04-01T01:07:49.006978\"\n            }\n        ],\n        \"createDate\": \"2023-04-01T00:19:52.411325\"\n    }\n]"}],"_postman_id":"770513ed-1c7f-4b55-b634-53def5216f46"},{"name":"습관 등록","id":"9c46296c-32ca-4767-a057-1975130b4aab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"content\": \"점심먹고 운동하기\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/habits","urlObject":{"protocol":"http","port":"8080","path":["habits"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"143193c3-d20b-4ed2-a8d9-d95832338d13","name":"습관 등록","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"content\": \"점심먹고 운동하기\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/habits"},"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":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 04 Apr 2023 07:15:55 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"13"}],"_postman_id":"9c46296c-32ca-4767-a057-1975130b4aab"},{"name":"습관 수정","id":"d7cf66f4-736c-444f-b678-df12a523b37d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"content\": \"수정이\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/habits/13","urlObject":{"protocol":"http","port":"8080","path":["habits","13"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e8e04ad8-d4b7-49b2-a835-0d1474245682","name":"습관 수정","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"content\": \"수정이\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/habits/13"},"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":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 04 Apr 2023 07:16:30 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 13,\n    \"content\": \"수정이\",\n    \"createDate\": \"2023-04-04T16:15:55.364031\"\n}"}],"_postman_id":"d7cf66f4-736c-444f-b678-df12a523b37d"},{"name":"습관 체크 등록","id":"487780d4-df23-4f7e-a637-db4859bcdfb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:8080/habits/13/check","urlObject":{"protocol":"http","port":"8080","path":["habits","13","check"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"02a00267-0b33-4727-ba13-cde806009163","name":"습관 체크 등록","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8080/habits/13/check"},"status":"OK","code":200,"_postman_previewlanguage":"plain","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":"Content-Length","value":"0"},{"key":"Date","value":"Tue, 04 Apr 2023 07:16:47 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"487780d4-df23-4f7e-a637-db4859bcdfb8"},{"name":"습관 체크 취소","id":"355a4376-06e1-4aaf-b400-3b2caaf7a471","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/habits/13/check","urlObject":{"protocol":"http","port":"8080","path":["habits","13","check"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9ddf3e7c-2ea8-4348-a56a-6c7e27e2dd85","name":"습관 체크 취소","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/habits/13/check"},"status":"Conflict","code":409,"_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":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 04 Apr 2023 07:17:15 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"msg\": \"같은 날 두번 체크는 불가능합니다.\"\n}"}],"_postman_id":"355a4376-06e1-4aaf-b400-3b2caaf7a471"}]}