-
Notifications
You must be signed in to change notification settings - Fork 3
api_spec
chlwlgus4 edited this page Dec 15, 2021
·
29 revisions
- ๊ฐ์
- ํ์ API
- ์นดํ ๊ณ ๋ฆฌ API
- ์ปค๋ฎค๋ํฐ ํผ๋ ๊ฒ์ํ API
- ๋์ฌ๋ก ์ค๋ด์ ์์ฉ ์๋ฌผ API
- api ์คํ
- api: /api/v1/user/signup
- http method: POST
- ์์ฒญ ํค๋
Content-Type: application/json;charset=UTF-8
- request_body
{
"email": "hello@world.com",
"password": "password",
"nickname": "testuser"
}
- ์ฑ๊ณต ์๋ต
201 CREATED
{
"id": "1" ; ์์ฑ id
}
- api: /api/v1/user/signin
- http method: POST
- request_body: json
{
"email": "",
"password": ""
}
- ์ฑ๊ณต ์๋ต
- status_code: 200 OK
- header: Authorization bearer return
- ์คํจ ์๋ต
- status_code: 401 Unauthorized
-
api: /api/v1/user/logout
-
http method: POST
-
์ฑ๊ณต ์๋ต
200 OK
- api: /category
- http method: GET
- ์์ฒญ ํค๋
Content-Type: application/json;charset=UTF-8
- api: /category
- http method: POST
- ์์ฒญ ํค๋
Content-Type: application/json;charset=UTF-8
cookie: "JESSIONID: <id>"
- request_body
{
"name": "",
"parentId": 0L
}
- api: /category/{category_id}
- http method: PUT
- ์์ฒญ ํค๋
Content-Type: application/json;charset=UTF-8
cookie: "JESSIONID: <id>"
- request_body
{
"name": "",
"parentId": ""
}
- api: /category/{category_id}
- http method: DELETE
- ์์ฒญ ํค๋
Content-Type: application/json;charset=UTF-8
cookie: "JESSIONID: <id>"
- api: /board
- http method: GET
- ์์ฒญ ํค๋
Content-Type: application/json;charset=UTF-8
- api: /board/{account_id}
- http method: GET
- ์์ฒญ ํค๋
Content-Type: application/json;charset=UTF-8
- api: /board/{board_id}
- http method: GET
- ์์ฒญ ํค๋
Content-Type: application/json;charset=UTF-8
- api: /board
- http method: POST
- ์์ฒญ ํค๋
Content-Type: application/json;charset=UTF-8
cookie: "JESSIONID: <id>"
- request_body
{
"content": "",
"account": {}
}
- api: /board/{board_id}
- http method: PUT
- ์์ฒญ ํค๋
Content-Type: application/json;charset=UTF-8
cookie: "JESSIONID: <id>"
- request_body
{
"content": "",
}
- api: /board/{board_id}
- http method: DELETE
- ์์ฒญ ํค๋
Content-Type: application/json;charset=UTF-8
cookie: "JESSIONID: <id>"
- api: /gardenList
- request_body
{
"sType" : (ํ๋ช
: sPlntbneNm, ์๋ฌผ๋ช
: sCntntsSj, ์๋ช
: sPlntzrNm)
"sText" : (๊ฒ์์ด)
"word" : (ใฑ & ใด & A & B)
}
- api: /gardenDtl/{cntntsNo}
- request_heder ์ปจํ ์ธ ๋ฒํธ