Update 3.4. pri request=stations_available

This commit is contained in:
Rainer Gümpelein 2023-03-28 08:46:06 +00:00
parent 044cbdc6be
commit 9b2b2814ab

View file

@ -19,15 +19,13 @@
| authed | o | text | return 1 if user is authenticated on operator |
| gps_radius | + | text | geofencing by meters around station, for bike return. |
| uri_operator | + | text | URI of operator-server |
| service_tour | o | text | service tour number |
| bike_count | + | text | Amount of available bikes on station |
| user_rental_count | + | text | Amount of user rentaled bikes on station |
| operator_data | o | object | operator values (see example) |
Example
**REST request=stations_available** for authorized users
```
https://shareeapp-primary.copri-bike.de/APIjsonserver?request=stations_available&authcookie=6103_0f667aa7f234fe317a2705ee89fde0c3_1234567998
https://shareeapp-primary.example.tld/APIjsonserver?request=stations_available&authcookie=6103_0f667aa7f234fe317a2705ee89fde0c3_1234567998
```
**response** sharee JSON defaults + **response** multiple station objects
@ -38,7 +36,7 @@ https://shareeapp-primary.copri-bike.de/APIjsonserver?request=stations_available
},
"WUE9301" : {
"state" : "available",
"uri_operator" : "https://shareeapp-wue.copri-bike.de",
"uri_operator" : "https://shareeapp-wue.example.tld",
"description" : "Rieselfeldemo",
"operator_data" : {
"operator_hours" : "Montag, Mittwoch, Freitag 9-12 Uhr",
@ -59,8 +57,7 @@ https://shareeapp-primary.copri-bike.de/APIjsonserver?request=stations_available
"longitude" : " 7.765779379576922"
},
"gps_radius" : "100",
"bike_count" : "2",
"user_rental_count" : "1"
"bike_count" : "2"
},
"WUE9302" : {
...