Update 3.5. pri request=bikes_available

This commit is contained in:
Rainer Gümpelein 2022-07-15 12:36:44 +00:00
parent 4b8eb61645
commit b87e1d8047

View file

@ -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" : [