-
Notifications
You must be signed in to change notification settings - Fork 3
api_spec
choisungwook edited this page Oct 25, 2021
·
29 revisions
- api ์คํ
- api: /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: /login
- http method: POST
- ์์ฒญ ํค๋
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
- request_body: form-data
{
"email": "",
"password": ""
}
- ์ฑ๊ณต ์๋ต
- status_code: 200 OK
- cookie: ์ธ์ id๊ฐ JSESSIONID๋ก ๋ฆฌํด
- ์คํจ ์๋ต
- status_code: 401 Unauthorized
- api: /logout
- http method: POST
- ์์ฒญ ํค๋
Content-Type: application/json;charset=UTF-8
- request_body
{
}
- ์ฑ๊ณต ์๋ต
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>"