Update 5.3. tool request=service_done

This commit is contained in:
Rainer Gümpelein 2022-12-30 15:59:13 +00:00
parent cb9d72141f
commit 15390275ca

View file

@ -29,15 +29,19 @@ Parameter | Required | Format | Comment |
Example
**REST request** insert/update work_id with work_val
```
https://shareeapp-fr01.copri-bike.de/APIjsonserver?request=service_done&bike=FR_1541&work_id=int01&work_val=1&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_34567890
https://shareeapp-operator.example.tld/APIjsonserver?request=service_done&bike=FR1541&work_id=int01&work_val=1&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_34567890
```
**REST request** update "Aufgaben" by service_id
```
https://shareeapp-operator.example.tld/APIjsonserver?request=service_done&bike=FR1541&work_id=txt01&work_val=%3A%3Aerledigt%3A%3A&service_id=41519&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_34567890
```
**REST request** update bike for redistribution to another station
```
https://shareeapp-fr01.copri-bike.de/APIjsonserver?request=service_done&bike=FR_1541&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=FR_101&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_34567890
```
**REST request** update bike state to available OR maintanance OR defect
```
https://shareeapp-fr01.copri-bike.de/APIjsonserver?request=service_done&bike=FR_1541&work_id=state&work_val=maintanance&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_34567890
https://shareeapp-operator.example.tld/APIjsonserver?request=service_done&bike=FR1541&work_id=state&work_val=maintanance&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_34567890
```
**response** returns last bike/station service-work values by JSON-Objects depending on *bike* OR *station* number
@ -59,19 +63,19 @@ https://shareeapp-fr01.copri-bike.de/APIjsonserver?request=service_done&bike=FR_
"tariff_info_html" : "site/tariff_info.html",
"impress_html" : "site/impress.html",
"user_group" : [
"FR_300001",
"FR_300029"
"FR300001",
"FR300029"
],
"user_tour" : [
"FR_1",
"FR_2"
"FR1",
"FR2"
],
"uri_operator" : "https://shareeapp-fr01.copri-bike.de",
"uri_operator" : "https://shareeapp-operator.example.tld",
"service_template" : "401",
"response_state" : "OK, service_update",
"clearing_cache" : "0",
"uri_primary" : "https://shareeapp-primary.copri-bike.de",
"FR_1541" : {
"uri_primary" : "https://shareeapp-primary.example.tld",
"FR1541" : {
"int15" : {
"owner" : "0",
"mtime" : "",
@ -229,15 +233,16 @@ https://shareeapp-fr01.copri-bike.de/APIjsonserver?request=service_done&bike=FR_
"work_name" : "Achsschrauben"
},
"txt01" : {
"work_id" : "txt01",
"user_name" : "",
"work_name" : "Aufgaben",
"interval" : "0",
"work_val" : "Speiche locker\n",
"time_over" : "0",
"service_id" : "0",
"service_id" : "41514",
"user_name" : "copri admin",
"work_id" : "txt01",
"mtime" : "2022-11-29 10:40:46.186788+01",
"service_type" : "0",
"mtime" : "",
"owner" : "0"
"owner" : "18520"
},
"int12" : {
"user_name" : "",