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
4b8eb61645
commit
b87e1d8047
1 changed files with 15 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
||||||
| 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 |
|
||||||
| rental_description | + | object | with tarif_elements and rental_info |
|
| rental_description | + | object | with tarif_elements and rental_info |
|
||||||
|
| bike_type | + | object | describes the bike with some attributes |
|
||||||
|
|
||||||
**rental_description** JSON Object
|
**rental_description** JSON Object
|
||||||
| key | Required | Format | Comment |
|
| key | Required | Format | Comment |
|
||||||
|
@ -37,6 +38,13 @@
|
||||||
| tarif_elements | + | object with array | contains an indexed array with tarif data |
|
| tarif_elements | + | object with array | contains an indexed array with tarif data |
|
||||||
| rental_info | + | object with array | contains an indexed array with rental information |
|
| rental_info | + | object with array | contains an indexed array with rental information |
|
||||||
|
|
||||||
|
**bike_type** JSON Object
|
||||||
|
| key | Required | Format | Comment |
|
||||||
|
| ------------------ | -------- | ---------------- | -------------------------- |
|
||||||
|
| category | o | text | "city" or "cargo" |
|
||||||
|
| wheels | o | text | "2" or "3" |
|
||||||
|
| engine | o | object | contains engine attributes like "manufacturer" |
|
||||||
|
|
||||||
|
|
||||||
Example
|
Example
|
||||||
**REST request=bikes_available** for authorized users
|
**REST request=bikes_available** for authorized users
|
||||||
|
@ -56,6 +64,13 @@ https://sharee-primary.example.tld/APIjsonserver?request=bikes_available&authcoo
|
||||||
"latitude" : "47.987975491085045",
|
"latitude" : "47.987975491085045",
|
||||||
"longitude" : "7.816756743460897"
|
"longitude" : "7.816756743460897"
|
||||||
},
|
},
|
||||||
|
"bike_type" : {
|
||||||
|
"category" : "cargo",
|
||||||
|
"wheels" : "2",
|
||||||
|
"engine" : {
|
||||||
|
"manufacturer" : "dummy"
|
||||||
|
}
|
||||||
|
},
|
||||||
"rental_description" : {
|
"rental_description" : {
|
||||||
"tarif_elements" : {
|
"tarif_elements" : {
|
||||||
"1" : [
|
"1" : [
|
||||||
|
|
Loading…
Reference in a new issue