-
Notifications
You must be signed in to change notification settings - Fork 1
Toy ์์ฑ
soyeon Park edited this page Feb 5, 2021
·
1 revision
http://49.50.175.141:8080/api
-
url
/toys
-
method
POST
-
request body
{ "title": "์นตํ ์ผํฝ", "description": "์นตํ ์ผ ์ถ์ฒ ์๋น์ค", "logoUrl": "https://github.com/woowacourse-teams/2020-6rinkers/blob/dev/front/public/image/logo/CocktailPick_logo_FullName_white.png", "githubIdentifier": 1, "password": "password486", "serviceLink": "https://cocktailpick.com", "githubLink": "https://github.com/sypark9646/springGithubAPITest", "organizationId": 1, "category": "WEB", "period": "LESS_THAN_SIX_MONTHS", "contributors": [{"githubIdentifier": 11142, "username": "toneyparky"}, {"githubIdentifier": 2212, "username": "toney123"}], "email": "[email protected]", "techStackIds": [1,2, 3,4,5,6,7, 10], "pushedAt": "2021-02-04T16:15:30" }
Field Type Description Example Required title String Toy ์ ๋ชฉ title: "ํ ์ด๋๋" O description String Toy ์ค๋ช description: "ํ ์ดํ๋ก์ ํธ ํ๋ ์ดํ ์น ์๋น์ค" O logoUrl String Toy ๋ก๊ณ Url logoUrl: "https://avatars.githubusercontent.com/u/69037013?v=4" githubIdentifier Long github ๊ณ ์ ๋ ํฌ์งํ ๋ฆฌ ์๋ณ์ githubIdentifier=123123 O password String Toy ๋น๋ฐ๋ฒํธ password: "password486" O serviceLink String ํ ์ด ํ๋ก์ ํธ ์๋น์ค ์ฃผ์ serviceLink: "https://toy-land.co.kr" O githubLink String ํ ์ด ํ๋ก์ ํธ ๊นํ ๋ ํฌ์งํ ๋ฆฌ githubLink: "https://github.com/toy-land/backend" O organizationId Long ์์ id organizationId: 1 O category String ์นดํ ๊ณ ๋ฆฌ category: "AI" O period String ๊ฐ๋ฐ ๊ธฐ๊ฐ period: "1์ฃผ ์ด๋ด" O contributors List contributor ๊ธฐ์ฌ์๋ค contributors:[{githubIdentifier: 123123, username: "toneyparky"}, ...] O email String ์ด๋ฉ์ผ email: "[email protected]" techStackIds List Long ๊ธฐ์ ์คํ ์์ด๋๋ค techStackIds: [1, 34, 88] O pushedAt LocalDateTime ์ต์ ํธ์ฌ ์๊ฐ "pushedAt": "2021-02-04T16:15:30" O
-
success response
-
header
method parameter Description Required statusCode {{201}} created O -
body
{ "message": "toy ์ถ๊ฐ ์ฑ๊ณต" }
Field Type Description Example Required message String toy ์์ฑ ์ฑ๊ณต ๋ฉ์ธ์ง O
-
-
fail response
- body
{ "message": {{String}} }
Field Type Description Example Required message String ํด๋ผ์ด์ธํธ ์๋ฌ ๋ฉ์ธ์ง "์ ๋นํ ํด๋ผ์ด์ธํธ ์๋ฌ ๋ฉ์ธ์ง" O - header
method parameter Description Required statusCode {{400, 500}} Bad request, Server error O status message ์ํฉ 400 "์ ๋นํ ํด๋ผ์ธํธ ์๋ฌ ๋ฉ์ธ์ง." ํด๋ผ์ด์ธํธ์์ ์๋ชป ์์ฒญ 500 "์ ๋นํ ์๋ฒ ์๋ฌ ๋ฉ์ธ์ง" ์๋ฒ ๋ด๋ถ ์ค๋ฅ