Open LudoMon opened 9 years ago
Data structure :
{
"id":2,
"created_at":"2015-03-24 10:25:38",
"updated_at":"2015-03-24 10:25:38",
"name":"Tente",
"nbEmplacements":500,
"prix":{
"10-30":560,
"31-52":12
},
"ouverture":{
"10-30":true,
"31-52":false
},
"options":[
"piscine",
"gastronomie",
"sejourvert"
],
"images":[
"foo.jpg",
"bar.png"
]
}
Generate a token by camping, which should be included in each request (home made security) First API : POST a JSON object with all camping places Second API : CRUD operations on reservations