Skip to content

DropDown Box API

soyeon Park edited this page Feb 5, 2021 · 1 revision

Base URL

http://localhost:8080/api

DropDown Box API

Request

  • url

    /skills

  • method

    GET

Response

  • success response

    • status: 200
    • request body
      {
        "message": "skill ์กฐํšŒ ์„ฑ๊ณต",
        "data": [
          {
            "id": 1,
            "name": "Java"
          },
          ...
        ]
      }
      
      Field Type Description Example Required
      message String skill ๋ชฉ๋ก ์„ฑ๊ณต ๋ฉ”์„ธ์ง€ "skill ์กฐํšŒ ์„ฑ๊ณต" O
      data O
      data.id Long skill ID O
      data.name String skill๋ช… O
  • fail response

    • status: 500

      {
        "message": {{String}}
      }
      
      Field Type Description Example Required
      message String ์˜ค๋ฅ˜ ์‹คํŒจ ๋ฉ”์„ธ์ง€ "์„œ๋ฒ„ ๋‚ด๋ถ€ ์˜ค๋ฅ˜" O

Request

  • url

    /organizations

  • method

    GET

Response

  • success response

    • status: 200
    • request body
      {
        "message": "organization ์กฐํšŒ ์„ฑ๊ณต",
        "data": [
          {
            "id": 1,
            "name": "SOPT"
          },
          ...
        ]
      }
      
      Field Type Description Example Required
      message String organization ๋ชฉ๋ก ์„ฑ๊ณต ๋ฉ”์„ธ์ง€ "organization ์กฐํšŒ ์„ฑ๊ณต" O
      data O
      data.id Long organization ID O
      data.name String organization๋ช… O
  • fail response

    • status: 500

      {
        "message": {{String}}
      }
      
      Field Type Description Example Required
      message String ์˜ค๋ฅ˜ ์‹คํŒจ ๋ฉ”์„ธ์ง€ "์„œ๋ฒ„ ๋‚ด๋ถ€ ์˜ค๋ฅ˜" O