From b87e1d80471768cb89a3f9d3b5dda84fd170eddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rainer=20G=C3=BCmpelein?= Date: Fri, 15 Jul 2022 12:36:44 +0000 Subject: [PATCH] Update 3.5. pri request=bikes_available --- 3.5.-pri-request=bikes_available.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/3.5.-pri-request=bikes_available.md b/3.5.-pri-request=bikes_available.md index e479400..153f6ad 100644 --- a/3.5.-pri-request=bikes_available.md +++ b/3.5.-pri-request=bikes_available.md @@ -28,6 +28,7 @@ | lockit_GUID | + | text | bluetooth GUID | | authed | + | text | if 1 then authenticated request on operator | | rental_description | + | object | with tarif_elements and rental_info | +| bike_type | + | object | describes the bike with some attributes | **rental_description** JSON Object | key | Required | Format | Comment | @@ -37,6 +38,13 @@ | tarif_elements | + | object with array | contains an indexed array with tarif data | | 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 **REST request=bikes_available** for authorized users @@ -56,6 +64,13 @@ https://sharee-primary.example.tld/APIjsonserver?request=bikes_available&authcoo "latitude" : "47.987975491085045", "longitude" : "7.816756743460897" }, + "bike_type" : { + "category" : "cargo", + "wheels" : "2", + "engine" : { + "manufacturer" : "dummy" + } + }, "rental_description" : { "tarif_elements" : { "1" : [