Update 5.3. tool request=service_done

This commit is contained in:
Rainer Gümpelein 2022-12-31 11:20:00 +00:00
parent 89722c1312
commit 9ecffdae3b

View file

@ -37,12 +37,20 @@ https://shareeapp-operator.example.tld/APIjsonserver?request=service_done&bike=F
```
**REST request** update bike for redistribution to another station
```
https://shareeapp-operator.example.tld/APIjsonserver?request=service_done&bike=FR1541&work_id=station&work_val=FR_101&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_34567890
https://shareeapp-operator.example.tld/APIjsonserver?request=service_done&bike=FR1541&work_id=station&work_val=FR101&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_34567890
```
**REST request** update bike state to available OR maintanance OR defect
```
https://shareeapp-operator.example.tld/APIjsonserver?request=service_done&bike=FR1541&work_id=state&work_val=maintanance&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_34567890
```
**REST request** update bike for bike_battery_charge
```
https://shareeapp-operator.example.tld/APIjsonserver?request=service_done&bike=FR1541&work_id=bike_battery_charge&work_val=100&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_34567890
```
**REST request** update bike for smartlock_battery_charge
```
https://shareeapp-operator.example.tld/APIjsonserver?request=service_done&bike=FR1541&work_id=smartlock_battery_charge&work_val=100&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_34567890
```
**response** returns last bike/station service-work values by JSON-Objects depending on *bike* OR *station* number
```