LudoMon / Resor

Plateforme de réservation de campings : projet d'études de l'Ecole Centrale de Lille
MIT License
1 stars 0 forks source link

Make campings API #25

Open LudoMon opened 9 years ago

LudoMon commented 9 years ago

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

LudoMon commented 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" ] }