Skip to content

Update Specific TravelCard

Yongsung Heo edited this page Apr 19, 2019 · 2 revisions

Update Specific TravelCard

  • URL : /api/v1/my/travelcards/travelCardId
  • Method : PUT

Request Header

Follows the common header rule.

Request Body Parameters

Name Type Description
travelOfDay int required.
country string required.
title string required.
content string required.
imageName string .
imageUrl array .
date datetime required.

Response Body

Name Type Description
id int essential. TravelCard Id.
travelId int essential.
travelOfDay int essential.
country string essential.
title string .
content string .
imageName string .
imageUrl string .
date datetime essential.
isDelete boolean essential.

Examples

PUT /api/v1/my/travelcards/travelCardId

{
    "travelCard": {
        "id": 1,
        "travelId": 3,
        "travelOfDay": 3,
        "country": "미국",
        "title": "1일차 즐거운 여행",
        "content": "미국에 도착해서 숙소로 이동!",
        "imageName": "first.png",
        "imageUrl": "http://localhost:1234/first.png",
        "date": "Tue, 01 Jan 2019 00:00:00 GMT",
        "isDelete": false
    }
}

Clone this wiki locally