mirror of
https://gitlab.com/t6353/sharee.bike.wiki.git
synced 2024-12-22 15:46:26 +01:00
Create 4.1. op request=booking_request
This commit is contained in:
parent
cf1cd827ed
commit
4db69ec3a0
1 changed files with 62 additions and 0 deletions
62
4.1.-op-request=booking_request.md
Normal file
62
4.1.-op-request=booking_request.md
Normal file
|
@ -0,0 +1,62 @@
|
|||
### request=booking_request
|
||||
|
||||
**request** PUSH rental bike reservation with Ilockit values as return value.
|
||||
|
||||
| key | Required | Format | Comment |
|
||||
| ---------- | ----------- | -------- | ---------------------------- |
|
||||
| authcookie | + | text | unique encrypted key |
|
||||
| bike | + | int | bike prefix+number for booking |
|
||||
|
||||
**response** like **request=user_bikes_occupied** with "bikes_occupied" JSON-Objects
|
||||
|
||||
Example
|
||||
**REST request=booking_request** request from authorized users
|
||||
```
|
||||
https://shareeapp-fr01.copri-bike.de/APIjsonserver?request=booking_request&bike=FR1540&authcookie=6103_7dc3c95028d06c9663378f6d44346de7_12345678
|
||||
```
|
||||
**response** sharee JSON defaults + **response** multiple bikes_occupied objects
|
||||
```
|
||||
{
|
||||
"shareejson" : {
|
||||
***sharee JSON defaults***
|
||||
},
|
||||
"bikes_occupied" : {
|
||||
"155898" : {
|
||||
"bike" : "FR1540",
|
||||
"total_price" : "0.00",
|
||||
"gps" : {
|
||||
"longitude" : "7.825490",
|
||||
"latitude" : "47.976634"
|
||||
},
|
||||
"tariff_description" : {
|
||||
"number" : "5504",
|
||||
"free_hours" : "1.00",
|
||||
"eur_per_hour" : "2.00",
|
||||
"name" : "Vauban Bonus",
|
||||
"max_eur_per_day" : "15.00"
|
||||
},
|
||||
"state" : "occupied",
|
||||
"Ilockit_ID" : "ISHAREIT-2200540",
|
||||
"end_time" : "2021-10-28 20:08:15",
|
||||
"station" : "FR101",
|
||||
"Ilockit_GUID" : "00000000-0000-0000-0000-fc3c002a2add",
|
||||
"lock_state" : "unlocked",
|
||||
"description" : "Vauban-bike (Ilockit)",
|
||||
"request_time" : "2021-10-28 20:03:29.231426+02",
|
||||
"start_time" : "2021-10-28 20:06:36.412847+02",
|
||||
"unit_price" : "2.00",
|
||||
"uri_operator" : "https://shareeapp-fr01.copri-bike.de",
|
||||
"computed_hours" : "0",
|
||||
"system" : "Ilockit",
|
||||
"real_hours" : "0.0333333333333333",
|
||||
"K_u" : "[-66, 27, -35, 67, -62, 67, 53, 84, -71, 54, -119, 13, 86, -19, 35, -23, -61, 7, 105, -92, 0, 0, 0, 0]",
|
||||
"K_seed" : "[110, -106, -90, -65, 90, 47, 25, -112, -8, -115, 109, -69, 108, 56, -77, 88]",
|
||||
"bike_group" : [
|
||||
"FR300001"
|
||||
]
|
||||
},
|
||||
"155899" : {
|
||||
...
|
||||
}
|
||||
}
|
||||
```
|
Loading…
Reference in a new issue