Skip to content

Create New TravelCard

Yongsung Heo edited this page Apr 19, 2019 · 1 revision

Create New TravelCard

  • URL : /api/v1/my/travelcards/travelId
  • Method : POST

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.
backgroundImageUrl string .

Response Body

Name Type Description
id int essential. Travel 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

POST /api/v1/my/travelcards/travelId

{
    "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