mirror of
https://gitlab.com/t6353/sharee.bike.wiki.git
synced 2024-12-22 15:46:26 +01:00
Update 4.1. op request=booking_request
This commit is contained in:
parent
410b536955
commit
c7667d3ced
1 changed files with 4 additions and 5 deletions
|
@ -68,16 +68,16 @@ https://shareeapp-fr01.copri-bike.de/APIjsonserver?request=booking_request&bike=
|
||||||
| ---------- | ----------- | -------- | ---------------------------- |
|
| ---------- | ----------- | -------- | ---------------------------- |
|
||||||
| authcookie | + | text | unique encrypted key |
|
| authcookie | + | text | unique encrypted key |
|
||||||
| bike | + | text | bike prefix+number |
|
| bike | + | text | bike prefix+number |
|
||||||
| state | + | text | on rental start state=occupied |
|
| state | o | text | on rental start state=occupied |
|
||||||
| lock_state | + | text | on rental start lock_state=unlocking (BLE unlocked) |
|
| lock_state | o | text | on rental start lock_state=unlocking (BLE unlocked) |
|
||||||
| station_state | o | text | on rental start station_lock=unlocking (BLE unlocked) |
|
|
||||||
|
|
||||||
**response** like **request=user_bikes_occupied** with "bikes_occupied" JSON-Objects
|
**response** like **request=user_bikes_occupied** with "bikes_occupied" JSON-Objects
|
||||||
|
|
||||||
Example
|
Example
|
||||||
**REST request=booking_request** from authorized users
|
**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
|
**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",
|
"end_time" : "2021-10-28 20:08:15",
|
||||||
"station" : "FR101",
|
"station" : "FR101",
|
||||||
"lock_state" : "unlocking",
|
"lock_state" : "unlocking",
|
||||||
"station_state" : "unlocking",
|
|
||||||
"description" : "Vauban-bike",
|
"description" : "Vauban-bike",
|
||||||
"request_time" : "2021-10-28 20:03:29.231426+02",
|
"request_time" : "2021-10-28 20:03:29.231426+02",
|
||||||
"start_time" : "2021-10-28 20:06:36.412847+02",
|
"start_time" : "2021-10-28 20:06:36.412847+02",
|
||||||
|
|
Loading…
Reference in a new issue