Skip to content

tripFoodUpdate

Nam Koong Kwon edited this page Jan 3, 2020 · 2 revisions

여행별 식사 버튼 누르기


[PUT] ~/tripFood/


Request-Header

메소드 파라미터 설명
Content-Type application/json

Request-Body

이름 type 설명
TripId INTEGER TripFood의 FK
grade STRING 음식 등급 간편식 ~ 고급음식점
(예시)
{
	"TripId" : 1,
	"grade" : "일반음식점"
	
}

Response - body

SUCCESS
{
    "status": 200,
    "message": "여행 중 먹을 식사들을 변경했습니다.",
    "success": true
}

FAIL 1 : TripId에 해당하는 식사가 없을 경우
{
    "status": 204,
    "message": "정보가 없습니다.",
    "success": false
}
FAIL 2 : 내부 서버 오류
{
    "status": 500,
    "message": "서버 내부 오류",
    "success": false
}
Clone this wiki locally