Created
August 23, 2017 15:44
-
-
Save ricardofiorani/09aa43b89ad24b2a77df4fd84501abc2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"message": "successful operation", | |
"content": [ | |
{ | |
"id": 1234, | |
"campsite_id": 1234, | |
"categories": [ | |
{ | |
"name": "Pitch", | |
"slug": "pitch" | |
}, | |
{ | |
"name": "Tent", | |
"slug": "tent" | |
} | |
], | |
"name": "Example accommodation 1", | |
"size": "150 m²", | |
"capacity": 11, | |
"description": "This is an accommodation description example. It is made to be shown in the mock service only 1", | |
"amount_bed": 5, | |
"wheelchair_acessible": true, | |
"amount_toilet": 3, | |
"rooms": [ | |
{ | |
"amount_double_bed": 1, | |
"amount_single_bed": 0 | |
}, | |
{ | |
"amount_double_bed": 3, | |
"amount_single_bed": 1 | |
}, | |
{ | |
"amount_double_bed": 2543, | |
"amount_single_bed": 2 | |
} | |
], | |
"images": [ | |
{ | |
"title": "Image 1", | |
"alt": "alt of image 1", | |
"is_main": "true,", | |
"sizes": { | |
"780x520": "http://lorempixel.com/780/520/nature", | |
"375x250": "http://lorempixel.com/375/250/nature", | |
"120x80" : "http://lorempixel.com/120/80/nature" | |
} | |
}, | |
{ | |
"title": "Image 2", | |
"alt": "alt of image 2", | |
"is_main": false, | |
"sizes": { | |
"780x520": "http://lorempixel.com/780/520/nature", | |
"375x250": "http://lorempixel.com/375/250/nature", | |
"120x80" : "http://lorempixel.com/120/80/nature" | |
} | |
} | |
], | |
"facilities": [ | |
{ | |
"name": "wifi", | |
"value": true, | |
"slug": "wifi" | |
}, | |
{ | |
"name": "tv", | |
"value": true, | |
"slug": "tv" | |
}, | |
{ | |
"name": "kitchen", | |
"value": true, | |
"slug": "kitchen" | |
} | |
], | |
"extra_info": { | |
"checkin": "After 1 PM", | |
"checkout": "Until 1 PM", | |
"deposit": "Yes, pay me here now please" | |
}, | |
"included_options": { | |
"linen_included": true, | |
"cleaning_included": false, | |
"towels_included": true | |
}, | |
"rules": { | |
"barbecue_allowed": true, | |
"fire_allowed": false, | |
"vehicle_allowed": false, | |
"dogs_allowed": "yes" | |
}, | |
"links": { | |
"checkout": "http://url.to.checkout/1234" | |
} | |
}, | |
{ | |
"id": 1235, | |
"campsite_id": 1234, | |
"categories": [ | |
{ | |
"name": "Caravan", | |
"slug": "caravan" | |
}, | |
{ | |
"name": "Tent", | |
"slug": "tent" | |
} | |
], | |
"name": "Example accommodation 2", | |
"size": "1300 m²", | |
"capacity": 12, | |
"description": "This is an accommodation description example. It is made to be shown in the mock service only 2", | |
"amount_bed": 6, | |
"wheelchair_acessible": false, | |
"amount_toilet": 1, | |
"rooms": [ | |
{ | |
"amount_double_bed": 4, | |
"amount_single_bed": 5 | |
}, | |
{ | |
"amount_double_bed": 8, | |
"amount_single_bed": 1 | |
}, | |
{ | |
"amount_double_bed": 223, | |
"amount_single_bed": 42 | |
} | |
], | |
"images": [ | |
{ | |
"title": "Image 3", | |
"alt": "alt of image 3", | |
"is_main": "true,", | |
"sizes": { | |
"780x520": "http://lorempixel.com/780/520/nature", | |
"375x250": "http://lorempixel.com/375/250/nature", | |
"120x80" : "http://lorempixel.com/120/80/nature" | |
} | |
}, | |
{ | |
"title": "Image 4", | |
"alt": "alt of image 4", | |
"is_main": false, | |
"sizes": { | |
"780x520": "http://lorempixel.com/780/520/nature", | |
"375x250": "http://lorempixel.com/375/250/nature", | |
"120x80" : "http://lorempixel.com/120/80/nature" | |
} | |
} | |
], | |
"facilities": [ | |
{ | |
"name": "wifi", | |
"value": false, | |
"slug": "wifi" | |
}, | |
{ | |
"name": "tv", | |
"value": false, | |
"slug": "tv" | |
}, | |
{ | |
"name": "kitchen", | |
"value": false, | |
"slug": "kitchen" | |
} | |
], | |
"extra_info": { | |
"checkin": "After 1 PM", | |
"checkout": "Until 1 PM", | |
"deposit": "Yes, pay me here now please" | |
}, | |
"included_options": { | |
"linen_included": true, | |
"cleaning_included": false, | |
"towels_included": true | |
}, | |
"rules": { | |
"barbecue_allowed": true, | |
"fire_allowed": false, | |
"vehicle_allowed": false, | |
"dogs_allowed": "yes" | |
}, | |
"links": { | |
"checkout": "http://url.to.checkout/1235" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment