-
Notifications
You must be signed in to change notification settings - Fork 0
Home
-
ํ์๊ฐ์ [POST] โก
Request-Body (application/json)
SUCCESS
{ "status": 200, "success": true, "message": "ํ์ ๊ฐ์ ์ฑ๊ณต.", "data": { "id": 2, "email": "[email protected]", "userName": "tester" } }
FAIL 1 : ์ด๋ฏธ ๋ฑ๋ก๋ ID์ผ ๊ฒฝ์ฐ
{ "status": 400, "success": false, "message": "์กด์ฌํ๋ ID ์ ๋๋ค." }
FAIL 2 : ํ์ ์ ๋ ฅ๊ฐ์ด ๋ฏธ์ ๋ ฅ ์ํ์ผ ๊ฒฝ์ฐ
{ "status": 400, "success": false, "message": "ํ์ํ ๊ฐ์ด ์์ต๋๋ค." }
FAIL 3 : ์๋ฒ ์๋ฌ
{ "status": 500, "success": false, "message": "ํ์ ๊ฐ์ ์คํจ." }
-
๋ก๊ทธ์ธ[POST] โก
Request-Body (application/json)
SUCCESS
{ "status": 200, "success": true, "message": "๋ก๊ทธ์ธ ์ฑ๊ณต.", "data": { "id": 2, "email": "[email protected]", "userName": "tester", "accessToken": "~~~" } }
FAIL 1 : ํ์ ์ ๋ ฅ๊ฐ์ด ๋ฏธ์ ๋ ฅ ์ํ์ผ ๊ฒฝ์ฐ
{ "status": 400, "success": false, "message": "ํ์ํ ๊ฐ์ด ์์ต๋๋ค." }
FAIL 2 : ์กด์ฌํ์ง ์๋ email
{ "status": 400, "success": false, "message": "์กด์ฌํ์ง์๋ ์ ์ id ์ ๋๋ค." }
FAIL 3 : ๋น๋ฐ๋ฒํธ ๋ถ์ผ์น
{ "status": 400, "success": false, "message": "๋น๋ฐ๋ฒํธ๊ฐ ์ผ์นํ์ง ์์ต๋๋ค" }
FAIL 4 : ์๋ฒ ์๋ฌ
{ "status": 500, "success": false, "message": "๋ก๊ทธ์ธ ์คํจ." }
-
ํ ํฐ์ธ์ฆ[Header] โก
๋ก๊ทธ์ธ์ ํ ํฐ๊ฐ ํค๋๋ก ์ ์ก
FAIL 1 : ์ ํจํ์ง ์์ ํ ํฐ
{ "status": 401, "success": false, "message": "์ ํจํ์ง ์์ ํ ํฐ๊ฐ์ ๋๋ค." }
FAIL 2 : ํ ํฐ ๋ง๋ฃ
{ "status": 401, "success": false, "message": "ํ ํฐ ๊ฐ์ด ๋ง๋ฃ๋์์ต๋๋ค." }
-
Request-Header Routes
Request-header (application/json)
-
QuestionCard ์์ฑ[POST] โก
Request-Body (application/json)
SUCCESS
{ "status": 200, "success": true, "message": "์นด๋ ์์ฑ ์ฑ๊ณต", "data": { "id": 14, "number": 4, "question": "๊ฐ์ฅ ํ๋ค์๋ ๋ฌธ์ ์ํฉ์ ๋ฌด์์ด์๋์? ๊ตฌ์ฒด์ ์ผ๋ก ์ด๋ค ์ํฉ์ด์๋์?", "ActivityId": 6, "content": "๋ต๋ณ 4์ ๋๋ค." } }
FAIL 1 : ํ์ ์ ๋ ฅ๊ฐ์ด ๋ฏธ์ ๋ ฅ ์ํ์ผ ๊ฒฝ์ฐ
{ "status": 400, "success": false, "message": "ํ์ํ ๊ฐ์ด ์์ต๋๋ค." }
FAIL 2 : ์๋ฒ ์๋ฌ
{ "status": 500, "success": false, "message": "์นด๋ ์์ฑ ์คํจ" }
-
QuestionCard ์์ [PUT] โก
Request-Body (application/json)
SUCCESS
{ "status": 200, "success": true, "message": "์นด๋ ์์ ์ฑ๊ณต", "data": "์ง๋ฌธ ์นด๋ ์์ ์๋ฃ" }
FAIL 1 : ํ์ ์ ๋ ฅ๊ฐ์ด ๋ฏธ์ ๋ ฅ ์ํ์ผ ๊ฒฝ์ฐ
{ "status": 400, "success": false, "message": "ํ์ํ ๊ฐ์ด ์์ต๋๋ค." }
FAIL 2 : ์๋ฒ ์๋ฌ
{ "status": 500, "success": false, "message": "์นด๋ ์์ ์คํจ" }
-
QuestionCard ์กฐํ[GET] โก
์์ฑํ ํ๊ณ ์ง๋ฌธ ์นด๋ ์กฐํ (๊ธฐ๋ณธ ์ง๋ฌธ 10๊ฐ+ ์ ์ ๊ฐ ์์ฑํ ํ๊ณ ์ง๋ฌธ ์นด๋๋ค)
Request-Parameter (application/json)
SUCCESS
{ "status": 200, "success": true, "message": "์นด๋ ์กฐํ ์ฑ๊ณต", "data": { "questions": [ { "number": 1, "content": "ํ๋์ ํ๊ฒ ๋ ์ด์ ๋ ๋ฌด์์ธ๊ฐ์?", "guide": "ํ๋์ ์์ํ๊ฒ ๋ ๊ณ๊ธฐ์ ์ํฉ์ ๋ํด ์ค๋ช ํด์ฃผ์ธ์." }, { "number": 2, "content": "ํ๋์ ์์ํ ๋น์์ ๋ชฉํ๋ ๋ฌด์์ด์๋์?", "guide": "๊ฐ์ธ์ ์ธ ๋ชฉํ์ ํ์ ๋ชฉํ๋ฅผ ๋๋ ์ ์๊ฐํด๋ณด๋ฉด ์ข์์." }, { "number": 3, "content": "ํ๋์ ํ๋ฉฐ, ๋น์ ์ด ๋งก์ ์ฃผ์ ์ญํ ๊ณผ ๊ทธ์ ๋ฐ๋ฅธ ๊ณผ์ ๋ ๋ฌด์์ด์๋์?", "guide": "ํด๋น ์ญํ ๋ฐ ๊ณผ์ ๋ฅผ ๋งก๊ฒ ๋ ๋ฐฐ๊ฒฝ์ ํจ๊ป ์๊ฐํด๋ณด์์." }, { "number": 4, "content": "๊ฐ์ฅ ํ๋ค์๋ ๋ฌธ์ ์ํฉ์ ๋ฌด์์ด์๋์? ๊ตฌ์ฒด์ ์ผ๋ก ์ด๋ค ์ํฉ์ด์๋์?", "guide": "์์์น ๋ชปํ๋ ์๊ธฐ ์ํฉ, ํ์๊ณผ์ ๊ฐ๋ฑ ๋ฑ ๋ค์ํ๊ฒ ์๊ฐํด๋ณด๋ฉด ์ข์์." }, { "number": 5, "content": "ํ๋์ ํด๊ฒฐํ๋ ๊ณผ์ ์ ์์๋๋ก ๋ ์ฌ๋ ค ๋ณผ๊น์?", "guide": "์ด๋ค ๋ฐฉ๋ฒ์ ์ฌ์ฉํ๋์ง ๊ตฌ์ฒด์ ์ผ๋ก ๋ ์ฌ๋ ค๋ณด์ธ์." }, { "number": 6, "content": "๋ณด๋ค ํจ๊ณผ์ ์ผ๋ก ์ํํ๊ธฐ ์ํด ์ด๋ค ๋ ธ๋ ฅ์ ํ๋์?", "guide": "์กฐ์ธ์ ๊ตฌํ ์ฌ๋ ํน์ ์ฐธ๊ณ ํ ์๋ฃ๋ฅผ ๋ ์ฌ๋ ค๋ณด์ธ์." }, { "number": 7, "content": "ํด๋น ๋ฐฉ๋ฒ์ ์ ํํ ์ด์ ๋ ๋ฌด์์ธ๊ฐ์?", "guide": "๋ค๋ฅธ ๋์์ ๋นํด ๊ฐ์ฅ ํจ๊ณผ์ ์ด๋ผ๊ณ ์๊ฐํ๋ ์ด์ ๋ฅผ ์๊ฐํด๋ณด์ธ์." }, { "number": 8, "content": "์ด ํ๋์์ ๊ฐ์ฅ ํฌ๊ฒ ์ฑ์ทจํ ๊ฒ์ ๋ฌด์์ธ๊ฐ์?", "guide": "๊ฐ์ธ์ ์ธ ์ฑ์ฅ๊ณผ ๋์ธ์ ์ธ ์ฑ๊ณผ๋ฅผ ๋๋ ์ ์๊ฐํด๋ณด๋ฉด ์ข์์." }, { "number": 9, "content": "๋ฐ๋ฉด, ๊ฐ์ฅ ์์ฌ์ด ๊ฒ์ ๋ฌด์์ธ๊ฐ์?", "guide": "์ด๋ค ๋ถ๋ถ์ ๊ฐ์ ํ๋ฉด ๋ ์ข์ ๊ฒฐ๊ณผ๊ฐ ๋์์์ง ์๊ฐํด๋ณด์ธ์." }, { "number": 10, "content": "ํ๋์ ํตํด ๋ฐฐ์ด ์ ์ ๋ฌด์์ธ๊ฐ์? ๋์ ๊ด์ฌ ๋ถ์ผยท์ง๋ฌด์์ ์ด๋ป๊ฒ ๋์์ด ๋ ๊น์?", "guide": "๊ด๋ จ ์ง๋ฌด์ ํต์ฌ ์ญ๋ ํด์ํ๊ทธ๋ฅผ ๋ ์ฌ๋ ค ๋ณด์ธ์." } ], "questionCards": [ { "number": 1, "question": "ํ๋์ ํ๊ฒ ๋ ์ด์ ๋ ๋ฌด์์ธ๊ฐ์?", "content": "Answer 1" }, { "number": 2, "question": "ํ๋์ ์์ํ ๋น์์ ๋ชฉํ๋ ๋ฌด์์ด์๋์?", "content": "Answer 2" }, { "number": 3, "question": "ํ๋์ ํ๋ฉฐ, ๋น์ ์ด ๋งก์ ์ฃผ์ ์ญํ ๊ณผ ๊ทธ์ ๋ฐ๋ฅธ ๊ณผ์ ๋ ๋ฌด์์ด์๋์?", "content": "Answer 3" }, { "number": 4, "question": "๊ฐ์ฅ ํ๋ค์๋ ๋ฌธ์ ์ํฉ์ ๋ฌด์์ด์๋์? ๊ตฌ์ฒด์ ์ผ๋ก ์ด๋ค ์ํฉ์ด์๋์?", "content": "4๋ฒ ๋ต๋ณ ์์ ํ ๊ฒ์!" } ] } }
FAIL 1 : ํ์ ์ ๋ ฅ๊ฐ์ด ๋ฏธ์ ๋ ฅ ์ํ์ผ ๊ฒฝ์ฐ โ (์ด ๊ฒฝ์ฐ ํ๋ผ๋ฏธํฐ๊ฐ ์์ผ๋ฉด ํด๋น ๋ผ์ฐํ ์ด ์๊ธฐ ๋๋ฌธ)
404 ์๋ฌํ์ด์ง
FAIL 2 : ์๋ฒ ์๋ฌ
{ "status": 500, "success": false, "message": "์นด๋ ์กฐํ ์คํจ" }
-
Question ์กฐํ[GET] โก
Request-Body(application/json)
SUCCESS
{ "status": 200, "success": true, "message": "์ง๋ฌธ ๊ฐ์ ธ์ค๊ธฐ ์ฑ๊ณต", "data": [ { "number": 1, "content": "ํ๋์ ํ๊ฒ ๋ ์ด์ ๋ ๋ฌด์์ธ๊ฐ์?", "guide": "ํ๋์ ์์ํ๊ฒ ๋ ๊ณ๊ธฐ์ ์ํฉ์ ๋ํด ์ค๋ช ํด์ฃผ์ธ์." }, { "number": 2, "content": "ํ๋์ ์์ํ ๋น์์ ๋ชฉํ๋ ๋ฌด์์ด์๋์?", "guide": "๊ฐ์ธ์ ์ธ ๋ชฉํ์ ํ์ ๋ชฉํ๋ฅผ ๋๋ ์ ์๊ฐํด๋ณด๋ฉด ์ข์์." }, { "number": 3, "content": "ํ๋์ ํ๋ฉฐ, ๋น์ ์ด ๋งก์ ์ฃผ์ ์ญํ ๊ณผ ๊ทธ์ ๋ฐ๋ฅธ ๊ณผ์ ๋ ๋ฌด์์ด์๋์?", "guide": "ํด๋น ์ญํ ๋ฐ ๊ณผ์ ๋ฅผ ๋งก๊ฒ ๋ ๋ฐฐ๊ฒฝ์ ํจ๊ป ์๊ฐํด๋ณด์์." }, { "number": 4, "content": "๊ฐ์ฅ ํ๋ค์๋ ๋ฌธ์ ์ํฉ์ ๋ฌด์์ด์๋์? ๊ตฌ์ฒด์ ์ผ๋ก ์ด๋ค ์ํฉ์ด์๋์?", "guide": "์์์น ๋ชปํ๋ ์๊ธฐ ์ํฉ, ํ์๊ณผ์ ๊ฐ๋ฑ ๋ฑ ๋ค์ํ๊ฒ ์๊ฐํด๋ณด๋ฉด ์ข์์." }, { "number": 5, "content": "ํ๋์ ํด๊ฒฐํ๋ ๊ณผ์ ์ ์์๋๋ก ๋ ์ฌ๋ ค ๋ณผ๊น์?", "guide": "์ด๋ค ๋ฐฉ๋ฒ์ ์ฌ์ฉํ๋์ง ๊ตฌ์ฒด์ ์ผ๋ก ๋ ์ฌ๋ ค๋ณด์ธ์." }, { "number": 6, "content": "๋ณด๋ค ํจ๊ณผ์ ์ผ๋ก ์ํํ๊ธฐ ์ํด ์ด๋ค ๋ ธ๋ ฅ์ ํ๋์?", "guide": "์กฐ์ธ์ ๊ตฌํ ์ฌ๋ ํน์ ์ฐธ๊ณ ํ ์๋ฃ๋ฅผ ๋ ์ฌ๋ ค๋ณด์ธ์." }, { "number": 7, "content": "ํด๋น ๋ฐฉ๋ฒ์ ์ ํํ ์ด์ ๋ ๋ฌด์์ธ๊ฐ์?", "guide": "๋ค๋ฅธ ๋์์ ๋นํด ๊ฐ์ฅ ํจ๊ณผ์ ์ด๋ผ๊ณ ์๊ฐํ๋ ์ด์ ๋ฅผ ์๊ฐํด๋ณด์ธ์." }, { "number": 8, "content": "์ด ํ๋์์ ๊ฐ์ฅ ํฌ๊ฒ ์ฑ์ทจํ ๊ฒ์ ๋ฌด์์ธ๊ฐ์?", "guide": "๊ฐ์ธ์ ์ธ ์ฑ์ฅ๊ณผ ๋์ธ์ ์ธ ์ฑ๊ณผ๋ฅผ ๋๋ ์ ์๊ฐํด๋ณด๋ฉด ์ข์์." }, { "number": 9, "content": "๋ฐ๋ฉด, ๊ฐ์ฅ ์์ฌ์ด ๊ฒ์ ๋ฌด์์ธ๊ฐ์?", "guide": "์ด๋ค ๋ถ๋ถ์ ๊ฐ์ ํ๋ฉด ๋ ์ข์ ๊ฒฐ๊ณผ๊ฐ ๋์์์ง ์๊ฐํด๋ณด์ธ์." }, { "number": 10, "content": "ํ๋์ ํตํด ๋ฐฐ์ด ์ ์ ๋ฌด์์ธ๊ฐ์? ๋์ ๊ด์ฌ ๋ถ์ผยท์ง๋ฌด์์ ์ด๋ป๊ฒ ๋์์ด ๋ ๊น์?", "guide": "๊ด๋ จ ์ง๋ฌด์ ํต์ฌ ์ญ๋ ํด์ํ๊ทธ๋ฅผ ๋ ์ฌ๋ ค ๋ณด์ธ์." } ] }
FAIL : ์๋ฒ ์๋ฌ
{ "status": 500, "success": false, "message": "์ง๋ฌธ ๊ฐ์ ธ์ค๊ธฐ ์คํจ" }
-
์ ํํ ํ๋ ์กฐํ[GET] โก
์ฌ์ฉ์๊ฐ ์ ํํ ํ๋ ์กฐํ + ํ๋ ์์ฑ ์ํ(ํ๊ณ ์ง๋ฌธ ์นด๋ ์งํ๋)์ ๋ฐ๋ผ QuestionCard ์กฐํ
Request-Parameter(application/json)
isFinished?
letย isFinished; /* 0:ย ์์ฑํย ํ๋์นด๋ย X 1:ย ์์ฑํย ํ๋์นด๋๊ฐย ์์ผ๋ย 10๋ฒ๊น์งย ์์ฑX 2:ย 10๋ฒ๊น์งย ๋ชจ๋ ย ํ๋์นด๋ย ์์ฑO */
SUCCESS 1 (isFinished = 0)
{ "status": 200, "success": true, "message": "์ ํํ ํ๋ ๊ฐ์ ธ์ค๊ธฐ ์ฑ๊ณต", "data": { "selectedActivity": { "id": 2, "title": "hacking", "startDate": "20210101", "endDate": "20210302", "group": "๊ณผ๊ธฐ๋", "summary": "", "imageUrl": "https://sopt-27-osj.s3.ap-northeast-2.amazonaws.com/images/origin/1609569981565.png", "fileName": "", "fileUrl": "", "star": false, "UserId": 1 }, "jobTag": [ { "id": 5, "content": "๊ฐ๋ฐ์", "isJob": true, "ActivityId": 2 }, { "id": 6, "content": "์๋ฒ ๊ฐ๋ฐ์", "isJob": true, "ActivityId": 2 } ], "skillTag": [ { "content": "Spring", "isJob": false }, { "content": "Node.js", "isJob": false }, { "content": "์ฑ์ ", "isJob": false } ], "isFinished": 0 } }
SUCCESS 2 (isFinished = 1)
{ "status": 200, "success": true, "message": "์ ํํ ํ๋ ๊ฐ์ ธ์ค๊ธฐ ์ฑ๊ณต", "data": { "selectedActivity": { "id": 6, "title": "์๋๋ผ", "startDate": "20201231", "endDate": "20211231", "group": "์ํด", "summary": "ํ์ดํ !", "imageUrl": "https://sopt-27-osj.s3.ap-northeast-2.amazonaws.com/images/origin/1609591991198.jpg", "fileName": "CheckHomeImg.png", "fileUrl": "https://sopt-27-osj.s3.ap-northeast-2.amazonaws.com/images/origin/1609591991257.png", "star": false, "UserId": 1 }, "jobTag": [ { "id": 60, "content": "๊ฐ๋ฐ์", "isJob": true, "ActivityId": 6 }, { "id": 61, "content": "๋ ๋ง์ ์ฌ๋", "isJob": true, "ActivityId": 6 } ], "skillTag": [ { "content": "Spring", "isJob": false }, { "content": "Docker", "isJob": false }, { "content": "AWS", "isJob": false } ], "isFinished": 1 } }
SUCCESS 3 (isFinished = 2)
{ "status": 200, "success": true, "message": "์ ํํ ํ๋ ๊ฐ์ ธ์ค๊ธฐ ์ฑ๊ณต", "data": { "selectedActivity": { "id": 1, "title": "์๋๋ผ", "startDate": "20201231", "endDate": "20211231", "group": "์ํด", "summary": "ํ์ดํ !", "imageUrl": "https://sopt-27-osj.s3.ap-northeast-2.amazonaws.com/images/origin/1609592171400.jpg", "fileName": "CheckHomeImg.png", "fileUrl": "https://sopt-27-osj.s3.ap-northeast-2.amazonaws.com/images/origin/1609592171468.png", "star": false, "UserId": 1 }, "jobTag": [ { "id": 75, "content": "๊ฐ๋ฐ์", "isJob": true, "ActivityId": 1 }, { "id": 76, "content": "๋ ๋ง์ ์ฌ๋", "isJob": true, "ActivityId": 1 } ], "skillTag": [ { "content": "Spring", "isJob": false }, { "content": "Docker", "isJob": false }, { "content": "AWS", "isJob": false } ], "isFinished": 2, "questionCards": [ { "number": 1, "question": "ํ๋์ ํ๊ฒ ๋ ์ด์ ๋ ๋ฌด์์ธ๊ฐ์?", "content": "Answer 1" }, { "number": 2, "question": "ํ๋์ ์์ํ ๋น์์ ๋ชฉํ๋ ๋ฌด์์ด์๋์?", "content": "Answer 2" }, { "number": 3, "question": "ํ๋์ ํ๋ฉฐ, ๋น์ ์ด ๋งก์ ์ฃผ์ ์ญํ ๊ณผ ๊ทธ์ ๋ฐ๋ฅธ ๊ณผ์ ๋ ๋ฌด์์ด์๋์?", "content": "Answer 3" }, { "number": 4, "question": "๊ฐ์ฅ ํ๋ค์๋ ๋ฌธ์ ์ํฉ์ ๋ฌด์์ด์๋์? ๊ตฌ์ฒด์ ์ผ๋ก ์ด๋ค ์ํฉ์ด์๋์?", "content": "Answer 4์ด์ง๋กฑ" }, { "number": 5, "question": "ํ๋์ ํด๊ฒฐํ๋ ๊ณผ์ ์ ์์๋๋ก ๋ ์ฌ๋ ค ๋ณผ๊น์?", "content": "Answer 5" }, { "number": 6, "question": "๋ณด๋ค ํจ๊ณผ์ ์ผ๋ก ์ํํ๊ธฐ ์ํด ์ด๋ค ๋ ธ๋ ฅ์ ํ๋์?", "content": "Answer 6" }, { "number": 7, "question": "ํด๋น ๋ฐฉ๋ฒ์ ์ ํํ ์ด์ ๋ ๋ฌด์์ธ๊ฐ์?", "content": "Answer 7" }, { "number": 8, "question": "์ด ํ๋์์ ๊ฐ์ฅ ํฌ๊ฒ ์ฑ์ทจํ ๊ฒ์ ๋ฌด์์ธ๊ฐ์?", "content": "Answer 8" }, { "number": 9, "question": "๋ฐ๋ฉด, ๊ฐ์ฅ ์์ฌ์ด ๊ฒ์ ๋ฌด์์ธ๊ฐ์?", "content": "Answer 9" }, { "number": 10, "question": "ํ๋์ ํตํด ๋ฐฐ์ด ์ ์ ๋ฌด์์ธ๊ฐ์? ๋์ ๊ด์ฌ ๋ถ์ผยท์ง๋ฌด์์ ์ด๋ป๊ฒ ๋์์ด ๋ ๊น์?", "content": "Answer 10" } ] } }
FAIL 1 : ์กด์ฌํ์ง ์๋ ํ๋
{ "status": 400, "success": false, "message": "์ ํํ ํ๋ ๊ฐ์ ธ์ค๊ธฐ ์คํจ" }
FAIL 2 : ์๋ฒ ์๋ฌ
{ "status": 500, "success": false, "message": "์ ํํ ํ๋ ๊ฐ์ ธ์ค๊ธฐ ์คํจ" }
-
์ ์ฒด ํ๋ ์กฐํ[GET] โก
Request-Body(application/json)
SUCCESS
{ "status": 200, "success": true, "message": "์ ์ฒด ํ๋ ๊ฐ์ ธ์ค๊ธฐ ์ฑ๊ณต", "data": [ { "id": 1, "title": "์๋๋ผ", "startDate": "20201231", "endDate": "20211231", "imageUrl": "https://sopt-27-osj.s3.ap-northeast-2.amazonaws.com/images/origin/1609592171400.jpg", "jobTag": [ "๊ฐ๋ฐ์", "๋ ๋ง์ ์ฌ๋" ], "skillTag": [ "Spring", "Docker", "AWS" ] }, { "id": 2, "title": "hacking", "startDate": "20210101", "endDate": "20210302", "imageUrl": "https://sopt-27-osj.s3.ap-northeast-2.amazonaws.com/images/origin/1609569981565.png", "jobTag": [ "๊ฐ๋ฐ์", "์๋ฒ ๊ฐ๋ฐ์" ], "skillTag": [ "Spring", "Node.js", "์ฑ์ " ] }, { "id": 3, "title": "three", "startDate": "20180917", "endDate": "20200552", "imageUrl": "", "jobTag": [ "๊ฐ๋ฐ์", "์๋ฒ ๊ฐ๋ฐ์" ], "skillTag": [ "Spring", "Node.js", "์ฑ์ " ] }, { "id": 4, "title": "์คํ", "startDate": "20210101", "endDate": "20210202", "imageUrl": "https://sopt-27-osj.s3.ap-northeast-2.amazonaws.com/images/origin/1609583282664.png", "jobTag": [ "๊ฐ๋ฐ์", "์๋ฒ ๊ฐ๋ฐ์" ], "skillTag": [ "Spring", "Node.js", "์ฑ์ " ] }, { "id": 5, "title": "์คํ์ฒด", "startDate": "20210101", "endDate": "20210202", "imageUrl": "", "jobTag": [ "๊ฐ๋ฐ์", "์๋ฒ ๊ฐ๋ฐ์" ], "skillTag": [ "Spring", "Node.js", "์ฑ์ " ] }, { "id": 6, "title": "์๋๋ผ", "startDate": "20201231", "endDate": "20211231", "imageUrl": "https://sopt-27-osj.s3.ap-northeast-2.amazonaws.com/images/origin/1609591991198.jpg", "jobTag": [ "๊ฐ๋ฐ์", "๋ ๋ง์ ์ฌ๋" ], "skillTag": [ "Spring", "Docker", "AWS" ] } ] }
FAIL : ์๋ฒ ์๋ฌ
{ "status": 500, "success": false, "message": "์ ์ฒดํ๋ ๊ฐ์ ธ์ค๊ธฐ ์คํจ" }
-
์ฆ๊ฒจ์ฐพ๊ธฐ ํ๋ ์กฐํ[GET] โก
Request-Body(application/json)
SUCCESS
{ "status": 200, "success": true, "message": "์ ์ฒด ์ฆ๊ฒจ์ฐพ๊ธฐ ๊ฐ์ ธ์ค๊ธฐ ์ฑ๊ณต", "data": [ { "id": 1, "title": "์๋๋ผ", "startDate": "20201231", "endDate": "20211231", "imageUrl": "https://sopt-27-osj.s3.ap-northeast-2.amazonaws.com/images/origin/1609592171400.jpg", "jobTag": [ "๊ฐ๋ฐ์", "๋ ๋ง์ ์ฌ๋" ], "skillTag": [ "Spring", "Docker", "AWS" ] }, { "id": 3, "title": "three", "startDate": "20180917", "endDate": "20200502", "imageUrl": "", "jobTag": [ "๊ฐ๋ฐ์", "์๋ฒ ๊ฐ๋ฐ์" ], "skillTag": [ "Spring", "Node.js", "์ฑ์ " ] } ] }
FAIL : ์๋ฒ ์๋ฌ
{ "status": 500, "success": false, "message": "์ ์ฒด ์ฆ๊ฒจ์ฐพ๊ธฐ ๊ฐ์ ธ์ค๊ธฐ ์คํจ" }
-
์ฆ๊ฒจ์ฐพ๊ธฐ ์ถ๊ฐ ๋ฐ ํด์ [PUT] โก
Request-Parameter(application/json)
SUCCESS 1: ์ฆ๊ฒจ์ฐพ๊ธฐ ์ถ๊ฐ
{ "status": 200, "success": true, "message": "์ฆ๊ฒจ์ฐพ๊ธฐ ์ถ๊ฐ ๋ฐ ํด์ ์ฑ๊ณต", "data": "์ฆ๊ฒจ์ฐพ๊ธฐ ์ถ๊ฐ" }
SUCCESS 2: ์ฆ๊ฒจ์ฐพ๊ธฐ ํด์
{ "status": 200, "success": true, "message": "์ฆ๊ฒจ์ฐพ๊ธฐ ์ถ๊ฐ ๋ฐ ํด์ ์ฑ๊ณต", "data": "์ฆ๊ฒจ์ฐพ๊ธฐ ํด์ " }
FAIL : ์๋ฒ ์๋ฌ
{ "status": 500, "success": false, "message": "์ฆ๊ฒจ์ฐพ๊ธฐ ์ถ๊ฐ/ํด์ ์คํจ" }
-
ํด์ฌํ๊ทธ ๋ชฉ๋ก ์กฐํ[GET] โก
Request-Body(application/json)
SUCCESS
{ "status": 200, "success": true, "message": "ํด์ํ๊ทธ ์กฐํ ์ฑ๊ณต", "data": { "jobTag": [ "๊ฐ๋ฐ์", "์๋ฒ ๊ฐ๋ฐ์", "๋ ๋ง์ ์ฌ๋" ], "skillTag": [ "Spring", "Node.js", "์ฑ์ ", "Docker", "AWS" ] } }
FAIL : ์๋ฒ ์๋ฌ
{ "status": 500, "success": false, "message": "ํด์ํ๊ทธ ์กฐํ ์คํจ" }
-
ํ๋ ์์ฑ[POST] โก
SUCCESS
{ "status": 200, "success": true, "message": "ํ๋ ์์ฑ ์ฑ๊ณต", "data": { "newActivity": { "id": 7, "title": "ํ ์คํธ ํ๋", "startDate": "20190101", "endDate": "20200420", "group": "Something", "summary": "", "imageUrl": "https://sopt-27-osj.s3.ap-northeast-2.amazonaws.com/images/origin/1609739675912.png", "fileUrl": "", "fileName": "", "star": false, "UserId": 2 }, "newHashtag": [ { "id": 80, "content": "๊ฐ๋ฐ์", "isJob": true, "ActivityId": 7 }, { "id": 81, "content": "์๋ฒ ๊ฐ๋ฐ์", "isJob": true, "ActivityId": 7 }, { "id": 82, "content": "๊ฐ๋ฐ", "isJob": false, "ActivityId": 7 }, { "id": 83, "content": "Node.js", "isJob": false, "ActivityId": 7 }, { "id": 84, "content": "์ฑ์ ", "isJob": false, "ActivityId": 7 } ] } }
FAIL 1 : ํ์ ์ ๋ ฅ๊ฐ์ด ๋ฏธ์ ๋ ฅ ์ํ์ผ ๊ฒฝ์ฐ
{ "status": 400, "success": false, "message": "ํ์ํ ๊ฐ์ด ์์ต๋๋ค." }
FAIL 2 : ์๋ฒ ์๋ฌ
{ "status": 500, "success": false, "message": "ํ๋ ์์ฑ ์คํจ" }
-
ํ๋ ์์ [PUT] โก
SUCCESS
{ "status": 200, "success": true, "message": "ํ๋ ์ ๋ณด ์์ ์ฑ๊ณต", "data": "ํ๋ ์ ๋ณด ์์ ์๋ฃ" }
FAIL 1 : ํ์ ์ ๋ ฅ๊ฐ์ด ๋ฏธ์ ๋ ฅ ์ํ์ผ ๊ฒฝ์ฐ
{ "status": 400, "success": false, "message": "ํ์ํ ๊ฐ์ด ์์ต๋๋ค." }
FAIL 2 : ์๋ฒ ์๋ฌ
{ "status": 500, "success": false, "message": "ํ๋ ์ ๋ณด ์์ ์คํจ" }
-