Format de la requête
{
"action": [search, select_region, select_departement, select_pays],
"pays": ""
"departement": "",
"region": "",
"from": "",
"to": ""
} Paramètres
| Nom | Requis | Type | Valeur par défaut | Description |
|---|---|---|---|---|
| action | Oui | String | Aucune | Action: search, select_region, select_departement, select_pays |
| pays | Non | String | Aucune | pays à rechercher |
| departement | Non | String | Aucune | departement à rechercher |
| region | Non | String | Aucune | region à rechercher |
| from | Oui si action=search | Date | Aucune | Date de début de la recherche YYYY-MM-DD |
| to | Oui si action=search | Date | Aucune | Date de fin de la recherche YYYY-MM-DD |
Format de la réponse
[
{
"Date": "2021-11-20",
"Distance": "200",
"Club": "ara bergisches land",
"Contact": "andreas roeschies",
"Email": "andreas2022@roeschies.de",
"Website": "",
"Status": "Homologué",
"Pays": "Allemagne",
"Region": null,
"Departement": null,
"City": "wuppertal"
},
...
] Exemples
action = select_pays
GET /api/c2b4wp/v1/ride?action=select_pays
réponse
[
{
"Pays": "Allemagne"
},
{
"Pays": "Argentina"
},
...
] action = select_region
GET /api/c2b4wp/v1/ride?action=select_region
réponse
[
{
"Region": "aberystwyth"
},
{
"Region": "aichi"
},
...
] action = select_departement
GET /api/c2b4wp/v1/ride?action=select_departement
réponse
[
{
"Departement": "75"
},
{
"Departement": "Andhra Pradesh"
},
...
] action = search & Pays & From & To
GET /api/c2b4wp/v1/ride?action=search&pays=Allemagne&from=2021-11-01&to=2021-12-31
réponse
[
{
"Date": "2021-11-20",
"Distance": "200",
"Club": "ara bergisches land",
"Contact": "andreas roeschies",
"Email": "andreas2022@roeschies.de",
"Website": "",
"Status": "Homologué",
"Pays": "Allemagne",
"Region": null,
"Departement": null,
"City": "wuppertal"
}
] 