Skip to content

api_spec

choisungwook edited this page Oct 8, 2021 · 29 revisions

๊ฐœ์š”

  • api ์ŠคํŽ™

ํšŒ์› API

ํšŒ์› ์ „์ฒด ์กฐํšŒ

  • api: /users
  • http method: GET
  • ์š”์ฒญ ํ—ค๋”
Content-Type: application/json;charset=UTF-8

ํšŒ์›๊ฐ€์ž…

  • api: /users
  • http method: POST
  • ์š”์ฒญ ํ—ค๋”
Content-Type: application/json;charset=UTF-8
Authorization: "bearer <ํ† ํฐ>"
  • request_body
{
    "title": "",
}

๊ฒŒ์‹œํŒ API

๊ฒŒ์‹œํŒ ์กฐํšŒ

  • api: /boards/{board_id}
  • http method: GET
  • ์š”์ฒญ ํ—ค๋”
Content-Type: application/json;charset=UTF-8

๊ฒŒ์‹œํŒ ์ƒ์„ฑ

  • api: /boards
  • http method: POST
  • ์š”์ฒญ ํ—ค๋”
Content-Type: application/json;charset=UTF-8
Authorization: "bearer <ํ† ํฐ>"
  • request_body
{
    "title": "",
}

๊ฒŒ์‹œํŒ ์ˆ˜์ •

  • api: /boards/{board_id}
  • http method: PUT
  • ์š”์ฒญ ํ—ค๋”
Content-Type: application/json;charset=UTF-8
Authorization: "bearer <ํ† ํฐ>"
  • request_body
{
    "title": "",
}

๊ฒŒ์‹œํŒ ์‚ญ์ œ

  • api: /boards/{board_id}
  • http method: DELETE
  • ์š”์ฒญ ํ—ค๋”
Content-Type: application/json;charset=UTF-8
Authorization: "bearer <ํ† ํฐ>"