-
Notifications
You must be signed in to change notification settings - Fork 1
Toy ์กฐํ
soyeon Park edited this page Feb 5, 2021
·
1 revision
http://localhost:8080/api
-
url
/toys
-
method
GET
-
Query Params
Field Type Description Example Required page Long ํ์ด์ง ๋ช๋ฒ์งธ์ธ์ง default: 0 size Integer ํ์ด์ง ํฌ๊ธฐ default: 6 sort String ์ ๋ ฌ ๊ธฐ์ค default: created_date organization String List organization ํํฐ๋ง category String List category ํํฐ๋ง skill Long List skill ํํฐ๋ง period Long List period ํํฐ๋ง search String List ๊ฒ์ ์กฐ๊ฑด
-
success response
- status: 200
- body
[ { "id": 1, "title": "์นตํ ์ผํฝ", "description": "์นตํ ์ผ ์ถ์ฒ ์๋น์ค", "logoUrl": "https://github.com/woowacourse-teams/2020-6rinkers/blob/dev/front/public/image/logo/CocktailPick_logo_FullName_white.png", "category": "WEB", "active": "2021-02-04T16:15:30", "skills": [ { "createdDate": "2021-02-05T21:21:39", "updatedDate": "2021-02-05T21:21:39", "id": 1, "name": "java" }, { "createdDate": "2021-02-05T21:21:39", "updatedDate": "2021-02-05T21:21:39", "id": 2, "name": "javascript" }, { "createdDate": "2021-02-05T21:21:39", "updatedDate": "2021-02-05T21:21:39", "id": 3, "name": "spring" }, { "createdDate": "2021-02-05T21:21:39", "updatedDate": "2021-02-05T21:21:39", "id": 4, "name": "spring boot" }, { "createdDate": "2021-02-05T21:21:39", "updatedDate": "2021-02-05T21:21:39", "id": 5, "name": "react" }, { "createdDate": "2021-02-05T21:21:39", "updatedDate": "2021-02-05T21:21:39", "id": 6, "name": "vue.js" }, { "createdDate": "2021-02-05T21:21:39", "updatedDate": "2021-02-05T21:21:39", "id": 7, "name": "android" }, { "createdDate": "2021-02-05T21:21:39", "updatedDate": "2021-02-05T21:21:39", "id": 10, "name": "ios" } ] }, ... ]
Field Type Description Required id Long Toy Id O title String Toy title O description String Toy description O logoUrl String ๋ ํฌ์งํ ๋ฆฌ ์ด๋ฏธ์ง O category String ํ๋ก์ ํธ ์ฃผ์ O active LocalDateTime ์ต๊ทผ ๊น์ push๋ timestamp O skills ํ๋ก์ ํธ์ ์ฌ์ฉํ ๊ธฐ์ O skills.id Long skill ID O skills.name String skill๋ช O skills.createdDate LocalDateTime toy๋ฅผ ์ถ๊ฐํ ๋ ์ง O skills.updatedDate LocalDateTime toy์ ๊นํ ๋ ํฌ์ pushํ ๋ ์ง O
-
fail response
{ "message": {{String}} }
Field Type Description Example Required message String ์ค๋ฅ ์คํจ ๋ฉ์ธ์ง "์ฌ์ฉ์๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค" O status message ์ํฉ 400 "Bad Request" ์์ฒญ์ ์ฌ๋ฐ๋ฅธ ๋ฐฉ๋ฒ์ผ๋ก ํ์ง ์์ ๊ฒฝ์ฐ 404 "Entity Not Found exception" ์นดํ ๊ณ ๋ฆฌ ์ ํ ๋ฑ์ ๋ฒ์ ๋ด์์ ํ์ง ์์ ๊ฒฝ์ฐ 500 "์๋ฒ ๋ด๋ถ ์ค๋ฅ" ์๋ฒ ๋ด๋ถ์์ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ ๊ฒฝ์ฐ