Update 4.1. op request=booking_request

This commit is contained in:
Rainer Gümpelein 2022-03-28 16:14:46 +00:00
parent 410b536955
commit c7667d3ced

View file

@ -68,16 +68,16 @@ https://shareeapp-fr01.copri-bike.de/APIjsonserver?request=booking_request&bike=
| ---------- | ----------- | -------- | ---------------------------- |
| authcookie | + | text | unique encrypted key |
| bike | + | text | bike prefix+number |
| state | + | text | on rental start state=occupied |
| lock_state | + | text | on rental start lock_state=unlocking (BLE unlocked) |
| station_state | o | text | on rental start station_lock=unlocking (BLE unlocked) |
| state | o | text | on rental start state=occupied |
| lock_state | o | text | on rental start lock_state=unlocking (BLE unlocked) |
**response** like **request=user_bikes_occupied** with "bikes_occupied" JSON-Objects
Example
**REST request=booking_request** from authorized users
```
https://shareeapp-fr01.copri-bike.de/APIjsonserver?request=booking_request&bike=1006&state=occupied&lock_state=unlocking&station_state=unlocking&authcookie=1b2771663e0b7eb3519ab0_12345678
https://shareeapp-fr01.copri-bike.de/APIjsonserver?request=booking_request&bike=1006&state=occupied&lock_state=unlocking&authcookie=1b2771663e0b7eb3519ab0_12345678
```
**response** sharee JSON defaults + **response** multiple bikes_occupied objects
```
@ -104,7 +104,6 @@ https://shareeapp-fr01.copri-bike.de/APIjsonserver?request=booking_request&bike=
"end_time" : "2021-10-28 20:08:15",
"station" : "FR101",
"lock_state" : "unlocking",
"station_state" : "unlocking",
"description" : "Vauban-bike",
"request_time" : "2021-10-28 20:03:29.231426+02",
"start_time" : "2021-10-28 20:06:36.412847+02",