-
Notifications
You must be signed in to change notification settings - Fork 1
강아지 삭제하기
boong_u edited this page Sep 22, 2021
·
4 revisions
강아지 삭제하기
DELETE : /api/dogs/detail/:dogId
Content-Type: application/json
x-auth-token : 로그인 시 받는 jwt token (Ex:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiNjExMGNjMmFjNTBjZmY2YzdjOGIxZTZlIn0sImlhdCI6MTYyODU2NjQxMiwiZXhwIjoxNjI4NjAyNDEyfQ.SWMPObKmGjQcQOUgvHF1HNupO2OovuOHsCXz7O0HZck)
None
None
Example URL : {{BaseURL}}/api/dogs/detail/6110cd4b58d715bfe443ed34
Success : 200
{
"data": "deleted"
}
dog를 찾을 수 없는 경우 : 404
{
"error": "Dog Not Found"
}
토큰이 없거나 잘못된 경우 : 401
{
"error": "No token"
}
자신의 강아지가 아닐경우 : 403
{
"error": "Not authenticated"
}
Server Error : 500
{
"error" : "Internal Server Error"
}