Skip to content

Toy μ‚­μ œ

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

Base URL

http://49.50.175.141:8080/api

Request

  • url

    /toys/{id}

  • method

    DELETE

  • request body

    {
        "password": "password486"
    }
    
    Field Type Description Required
    password String 글을 μž‘μ„±ν•œ μ‚¬λžŒμ΄ μ“΄ λΉ„λ°€λ²ˆν˜Έκ°€ μ‚­μ œν•  λ•Œ λ‹€μ‹œ 쓰인닀 O

Response

  • success response

    • status: 204

    • body

      {
          "message": "toy μ‚­μ œ 성곡!"
      }
      
      Field Type Description Required
      message String toy μ‚­μ œ 성곡 메세지 O
  • fail response

    {
        "message": {{String}}
    }
    
    Field Type Description Example Required
    message String 였λ₯˜ μ‹€νŒ¨ 메세지 "μ‚¬μš©μžλ₯Ό 찾을 수 μ—†μŠ΅λ‹ˆλ‹€" O
    status message 상황
    400 "Bad Request" μš”μ²­μ„ 잘λͺ»ν•œ 경우
    401 "Entity Not Found exception" μ‚­μ œν•˜λ €λŠ” 글이 μ—†λŠ” 경우
    402 "νŒ¨μŠ€μ›Œλ“œ 였λ₯˜" μ‚­μ œν•˜λ €λŠ” κΈ€μ˜ νŒ¨μŠ€μ›Œλ“œκ°€ ν‹€λ¦° 경우