Skip to content

Create New Travel

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

Create New Travel

  • URL : /api/v1/my/travels
  • Method : POST

Request Header

Follows the common header rule.

Request Body Parameters

Name Type Description
startDate datetime required.
endDate datetime required.
travelType string required.
entireCountry array .
title string .
thema array .
backgroundImageName string .
backgroundImageUrl string .

Response Body

Name Type Description
id int essential. Travel Id.
startDate datetime .
endDate string .
travelType string .
entireCountry array .
title string .
thema array .
backgroundImageName string .
backgroundImageUrl string .
share boolean .
isDelete boolean .

Examples

POST /api/v1/my/travels

{
    "travel": {
        "id": 1,
        "startDate": "Tue, 01 Jan 2019 00:00:00 GMT",
        "endDate": "",
        "travelType": "foreign",
        "entireCountry": ["korea"],
        "title": "This is my first travel.",
        "thema": ["party"],
        "backgroundImageName": "first.png",
        "backgroundImageUrl": "http://localhost:1234/first.png",
        "share": false,
        "isDelete": false
    }
}

Clone this wiki locally