Connecteur appelé par le module restaurant. Il doit retourner :
URL en méthode GET
<host>/<uri> |
[ { "id" : Number "title": String "thumbnail_url": String "short_desc": String "opening" : Object (String, Object( "is_open" : Boolean "label" : String)) "infos": String "contact": String "lat": Float "lon": Float "zone": String } ] |
[ { "id": 682, "title": "Resto U' Cours Léopold", "short_desc": "À proximité du campus droit", "opening": { "1": { "is_open": true, "label": "Ouvert ce midi et ce soir" }, "2": { "is_open": true, "label": "Ouvert ce midi et ce soir" }, "3": { "is_open": true, "label": "Ouvert ce midi et ce soir" }, "4": { "is_open": true, "label": "Ouvert ce midi et ce soir" }, "5": { "is_open": true, "label": "Ouvert ce midi et ce soir" }, "6": { "is_open": false, "label": "Fermé" }, "7": { "is_open": false, "label": "Fermé" } }, "lat": 48.695038, "lon": 6.1772227, "thumbnail_url": "https://admin-v2.crous-mobile.fr/media//crous-images/restaurant-universitaire-cours-leopold-nancy1_thumb.jpg", "contact": "<h2>Resto U' Cours Léopold</h2><p>16, Cours Léopold 54000 NANCY<br/><b>Téléphone</b> : 03 83 32 70 60</p>", "infos": " <img src=\"/crous-images/restaurant-universitaire-cours-leopold-nancy1.jpg\" class=\"image-batiment\"> <h2>Localisation</h2><p>À proximité du campus droit</p> <h2>Horaires</h2><p>11h30 – 13h30 & 18h30 – 20h00 (lundi – vendredi)<br/>11h30 – 14h00 (samedi)</p> <h2>Paiements possibles</h2><p><img valign=middle width=32 height=32 src='https://www.crous-amiens.fr/wp-content/uploads/sites/9/2020/05/carte-bleue.gif'/> Carte bancaire<br/> <img valign=middle width=32 height=32 src='https://www.crous-amiens.fr/wp-content/uploads/sites/9/2020/05/izly.png'/> IZLY<br/> </p>", "zone": "Nancy" }, { "id": 685, "title": "Resto U' Saurupt", "short_desc": "À proximité du campus pharmacie / dentaire", "opening": { "1": { "is_open": true, "label": "Ouvert ce soir" }, "2": { "is_open": true, "label": "Ouvert ce soir" }, "3": { "is_open": true, "label": "Ouvert ce soir" }, "4": { "is_open": true, "label": "Ouvert ce soir" }, "5": { "is_open": true, "label": "Ouvert ce soir" }, "6": { "is_open": false, "label": "Fermé" }, "7": { "is_open": false, "label": "Fermé" } }, "lat": 48.680283, "lon": 6.1844316, "thumbnail_url": "https://admin-v2.crous-mobile.fr/media//crous-images/restaurant-universitaire-saurupt-nancy1_thumb.jpg", "contact": "<h2>Resto U' Saurupt</h2><p>22 rue de Saurupt 54000 Nancy<br/><b>Téléphone</b> : 03 83 53 28 62</p>", "infos": " <img src=\"/crous-images/restaurant-universitaire-saurupt-nancy1.jpg\" class=\"image-batiment\"> <h2>Localisation</h2><p>À proximité du campus pharmacie / dentaire</p> <h2>Horaires</h2><p>11h30 – 13h30 (lundi – vendredi)</p> <h2>Paiements possibles</h2><p><img valign=middle width=32 height=32 src='https://www.crous-amiens.fr/wp-content/uploads/sites/9/2020/05/carte-bleue.gif'/> Carte bancaire<br/> <img valign=middle width=32 height=32 src='https://www.crous-amiens.fr/wp-content/uploads/sites/9/2020/05/izly.png'/> IZLY<br/> </p>", "zone": "Nancy" } ] |
URL en méthode GET
<host>/<uri>/<id> |
[{ "id": Number "date": String "meal": [{ "name": String "foodcategory": [{ "name": String "dishes": [String] }] }] }] |
On attend un tableau de menu avec pour chacun :
[ { "id": 1338882, "date": "2024-01-15", "meal": [ { "name": "midi", "foodcategory": [ { "name": "CROUS CLUB", "dishes": [ "Fricadelle tzatziki ", "Steak haché ", "Saucisse de Strasbourg ", "Sauté de porc ", "Pintade ", "Haricots verts ", "Purée de pommes de terre ", "Carottes rondelles" ] }, { "name": "TRADITIONNEL 1", "dishes": [ "Fricadelles Tzatziki - 6 points", "Saucisse de Strasbourg - 5 points", "Nuggets de poisson - 6 points", "Frites" ] }, { "name": "TRADITIONNEL 2", "dishes": [ "Cordon bleu de dinde - 5 points", "Quiche au comté - 5 points", "Saucisse de Strasbourg - 5 points", "Carottes rondelles ", "Pommes de terre rissolées" ] } ] }, { "name": "soir", "foodcategory": [ { "name": "TRADITIONNEL 1", "dishes": [ "Boulettes - 5 points", "Tortellinis de boeuf - 6 points", "Pâtes torsades ", "Ratatouille" ] } ] } ] }, { "id": 1339235, "date": "2024-01-16", "meal": [...] } ] |
<host>/<uri>/<id>/defaultMeal?datetime=<date> |
{ "id": Number "date": String "meal": [{ "name": String "foodcategory": [{ "name": String "dishes": [String] }] }] } | null |
On attend le prochain menu à la date/heure demandée, avec :
null
si aucun repas n'est disponible pour le temps donné/defaultMeal?datetime=2024-01-15T19:00:00.000Z
, pour ce restaurant, le prochain repas est le soir même :{ "id": 1338882, "date": "2024-01-15", "meal": [ { "name": "soir", "foodcategory": [ { "name": "TRADITIONNEL 1", "dishes": [ "Boulettes - 5 points", "Tortellinis de boeuf - 6 points", "Pâtes torsades ", "Ratatouille" ] } ] } ] } |
/defaultMeal?datetime=2024-01-15T22:00:00.000Z
, pour ce restaurant, le prochain repas sera le lendemain midi :{ "id": 1339235, "date": "2024-01-16", "meal": [ { "name": "midi", "foodcategory": [ { "name": "CROUS CLUB", "dishes": [ "Blanquette de veau ", "Steak haché ", "Boudin noir ", "Poulet- fermier ", "Poisson sauce beurre blanc ", "Chili au soja", "Pizza quatre fromages ", "Bâtonnière de légumes ", "Riz pilaf", "Brocolis fleurette" ] }, { "name": "TRADITIONNEL 1", "dishes": [ "Poisson sauce beurre blanc - 6 points", "Steak de poulet - 5 points", "Pizza quatre fromages - 5 points", "Frites" ] }, { "name": "TRADITIONNEL 2", "dishes": [ "Paupiette marengo - 5 points", "Chili au soja - 6 points", "Poisson sauce beurre blanc - 6 points", "Riz pilaf ", "Bâtonnière de légumes" ] } ] } ] } |