-
Notifications
You must be signed in to change notification settings - Fork 1
Create New Travel
Yongsung Heo edited this page Apr 17, 2019
·
2 revisions
- URL :
/api/v1/my/travels - Method :
POST
Follows the common header rule.
| Name | Type | Description |
|---|---|---|
| startDate | datetime | required. |
| endDate | datetime | required. |
| travelType | string | required. |
| entireCountry | array | . |
| title | string | . |
| thema | array | . |
| backgroundImageName | string | . |
| backgroundImageUrl | string | . |
| 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 | . |
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
}
}