mirror of
https://gitlab.com/t6353/sharee.bike.wiki.git
synced 2024-12-22 23:46:29 +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 |
|
| station | + | text | station prefix+number |
|
||||||
| bike_group | + | array | bike group |
|
| bike_group | + | array | bike group |
|
||||||
| system | + | text>=1 | bike lock system |
|
| system | + | text>=1 | bike lock system |
|
||||||
| uri_operator | + | text | URI of Operator-Server |
|
| uri_operator | + | text | URI of Operator-Server |
|
||||||
| lockit_ID | + | text | bluetooth ID |
|
| lockit_ID | + | text | bluetooth ID |
|
||||||
| lockit_GUID | + | text | bluetooth GUID |
|
| lockit_GUID | + | text | bluetooth GUID |
|
||||||
| authed | + | text | if 1 then authenticated request on operator |
|
| 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 |
|
| key | Required | Format | Comment |
|
||||||
| ------------------ | -------- | ---------------- | -------------------------- |
|
| ------------------ | -------- | ---------------- | -------------------------- |
|
||||||
| name | + | text | Tarif name |
|
| name | + | text | Tarif name |
|
||||||
| number | + | text | Tarif number |
|
| id | + | text | Tarif number |
|
||||||
| eur_per_hour | + | text | EUR per hour |
|
| tarif_elements | + | object with array | contains an indexed array with tarif data |
|
||||||
| free_hours | + | text | free hours per bike per day |
|
| rental_info | + | object with array | contains an indexed array with rental information |
|
||||||
| 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 |
|
|
||||||
|
|
||||||
|
|
||||||
Example
|
Example
|
||||||
**REST request=bikes_available** for authorized users
|
**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
|
**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",
|
"latitude" : "47.987975491085045",
|
||||||
"longitude" : "7.816756743460897"
|
"longitude" : "7.816756743460897"
|
||||||
},
|
},
|
||||||
"tariff_description" : {
|
"rental_description" : {
|
||||||
"name" : "WuerzBasis Tarif",
|
"tarif_elements" : {
|
||||||
"eur_per_hour" : "3.00",
|
"1" : [
|
||||||
"max_eur_per_day" : "15.00",
|
"Mietgebühr",
|
||||||
"free_hours" : "0.50",
|
"3,00 € / 1 Std "
|
||||||
"number" : "5523"
|
],
|
||||||
|
"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",
|
"state" : "available",
|
||||||
"authed" : "1",
|
"authed" : "1",
|
||||||
|
@ -78,7 +91,7 @@ https://shareeapp-primary.copri-bike.de/APIjsonserver?request=bikes_available&au
|
||||||
"WUE300029"
|
"WUE300029"
|
||||||
],
|
],
|
||||||
"Ilockit_ID" : "00000000-0000-0000-0000-fc3c002a2add",
|
"Ilockit_ID" : "00000000-0000-0000-0000-fc3c002a2add",
|
||||||
"uri_operator" : "https://shareeapp-wue.copri-bike.de",
|
"uri_operator" : "https://shareeapp-op.example.tld",
|
||||||
"system" : "Ilockit"
|
"system" : "Ilockit"
|
||||||
},
|
},
|
||||||
"LEC5522" : {
|
"LEC5522" : {
|
||||||
|
|
Loading…
Reference in a new issue