-
Notifications
You must be signed in to change notification settings - Fork 1
Update Specific TravelCard
Yongsung Heo edited this page Apr 19, 2019
·
2 revisions
- URL :
/api/v1/my/travelcards/travelCardId - Method :
PUT
Follows the common header rule.
| Name | Type | Description |
|---|---|---|
| travelOfDay | int | required. |
| country | string | required. |
| title | string | required. |
| content | string | required. |
| imageName | string | . |
| imageUrl | array | . |
| date | datetime | required. |
| 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. |
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
}
}