Skip to content

✔태그 삭제

alia edited this page Jan 5, 2021 · 3 revisions
메소드 경로 설명
DELETE /deleteTag 태그 삭제 (ex. /deleteTag?tagIndex=8)

feed_tag_delete

Request Header

{
    "Content-Type": "application/json",
    "token": "액세스토큰"
}

Request Params

{
    "tagIndex": 8
}

Response

< Success >

{
    "responseMessage": "태그 삭제 성공",
    "data": 1
}
  • data : 1 이면 삭제 성공, 0 이면 디비에 없는 tagIndex이므로 에러

< Fail >

  • 통신은 성공이어서 status code 200이지만 디비에 없는 tagIndex이므로 에러임
{
    "responseMessage": "데이터베이스 에러",
    "data": 0
}
  • 데이터 누락 (400)
{
    "timestamp": "2020-12-29T02:04:54.539+00:00",
    "status": 400,
    "error": "Bad Request",
    "message": "",
    "path": "/deleteTag"
}
  • 서버 내부 에러 (requestParams 제대로 안 넣었을 때) (500)
{
    "responseMessage": "서버 내부 에러",
    "data": null
}
  • 메소드 에러 (405)
  • 경로 에러 (404)
  • 권한 에러 (수정 삭제는 미리 막고 대부분 토큰 만료)(401)

Clone this wiki locally