mirror of
https://gitlab.com/t6353/sharee.bike.wiki.git
synced 2024-12-22 15:46:26 +01:00
Update 3.5. pri request=bikes_available
This commit is contained in:
parent
c896e9649e
commit
b30b6b3075
1 changed files with 33 additions and 20 deletions
|
@ -23,29 +23,25 @@
|
|||
| station | + | text | station prefix+number |
|
||||
| bike_group | + | array | bike group |
|
||||
| system | + | text>=1 | bike lock system |
|
||||
| uri_operator | + | text | URI of Operator-Server |
|
||||
| lockit_ID | + | text | bluetooth ID |
|
||||
| lockit_GUID | + | text | bluetooth GUID |
|
||||
| uri_operator | + | text | URI of Operator-Server |
|
||||
| lockit_ID | + | text | bluetooth ID |
|
||||
| lockit_GUID | + | text | bluetooth GUID |
|
||||
| authed | + | text | if 1 then authenticated request on operator |
|
||||
| tariff_description | + | array | bike Tariff description |
|
||||
| rental_description | + | object | with tarif_elements and rental_info |
|
||||
|
||||
**tariff_description** JSON Object
|
||||
**rental_description** JSON Object
|
||||
| key | Required | Format | Comment |
|
||||
| ------------------ | -------- | ---------------- | -------------------------- |
|
||||
| name | + | text | Tarif name |
|
||||
| number | + | text | Tarif number |
|
||||
| eur_per_hour | + | text | EUR per hour |
|
||||
| free_hours | + | text | free hours per bike per day |
|
||||
| max_eur_per_day | + | text | max EUR per day |
|
||||
| abo_eur_per_month | + | text | EUR per month by Abo |
|
||||
| track_info | + | text | GPS tracking message |
|
||||
| operator_agb | + | text | Operator AGB message and href |
|
||||
| id | + | text | Tarif number |
|
||||
| tarif_elements | + | object with array | contains an indexed array with tarif data |
|
||||
| rental_info | + | object with array | contains an indexed array with rental information |
|
||||
|
||||
|
||||
Example
|
||||
**REST request=bikes_available** for authorized users
|
||||
```
|
||||
https://shareeapp-primary.copri-bike.de/APIjsonserver?request=bikes_available&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_23456789
|
||||
https://sharee-primary.example.tld/APIjsonserver?request=bikes_available&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_23456789
|
||||
```
|
||||
|
||||
**response** sharee JSON defaults + **response** multiple bike objects
|
||||
|
@ -60,12 +56,29 @@ https://shareeapp-primary.copri-bike.de/APIjsonserver?request=bikes_available&au
|
|||
"latitude" : "47.987975491085045",
|
||||
"longitude" : "7.816756743460897"
|
||||
},
|
||||
"tariff_description" : {
|
||||
"name" : "WuerzBasis Tarif",
|
||||
"eur_per_hour" : "3.00",
|
||||
"max_eur_per_day" : "15.00",
|
||||
"free_hours" : "0.50",
|
||||
"number" : "5523"
|
||||
"rental_description" : {
|
||||
"tarif_elements" : {
|
||||
"1" : [
|
||||
"Mietgebühr",
|
||||
"3,00 € / 1 Std "
|
||||
],
|
||||
"2" : [
|
||||
"Gratiszeit",
|
||||
"1 Std / Tag"
|
||||
],
|
||||
"4" : [
|
||||
"Max. Gebühr",
|
||||
"20,00 € / Tag"
|
||||
]
|
||||
},
|
||||
"id" : "5519",
|
||||
"name" : "Cargo-Bikes",
|
||||
"rental_info" : {
|
||||
"2" : [
|
||||
"AGB",
|
||||
"Mit der Mietrad Anmietung wird der Betreiber AGB zugestimmt."
|
||||
]
|
||||
}
|
||||
},
|
||||
"state" : "available",
|
||||
"authed" : "1",
|
||||
|
@ -78,7 +91,7 @@ https://shareeapp-primary.copri-bike.de/APIjsonserver?request=bikes_available&au
|
|||
"WUE300029"
|
||||
],
|
||||
"Ilockit_ID" : "00000000-0000-0000-0000-fc3c002a2add",
|
||||
"uri_operator" : "https://shareeapp-wue.copri-bike.de",
|
||||
"uri_operator" : "https://shareeapp-op.example.tld",
|
||||
"system" : "Ilockit"
|
||||
},
|
||||
"LEC5522" : {
|
||||
|
|
Loading…
Reference in a new issue