Update 5.4. tool request=service_work

This commit is contained in:
Rainer Gümpelein 2022-12-30 17:55:27 +00:00
parent 15390275ca
commit 89722c1312

View file

@ -8,7 +8,9 @@
| bike | o /+ | text | bike prefix+number |
| station | o /+ | text | station prefix+number |
**response** bike OR station prefix+number with work-values by JSON-Objects
**response** bike OR station prefix+number with work-values by JSON-Objects.
JSON-objects are described by the internal-data-key.
To be able to process several "txt01" tasks, if there is more than one open task, a counter separated by a _ is added to the internal-data-key.
| Parameter | Required | Format | Comment |
| -------------- | -------- | -------- | -------------------------------------- |
@ -26,7 +28,7 @@
Example
**REST request** read last work values by bike or station prefix+number
```
https://shareeapp-fr01.copri-bike.de/APIjsonserver?request=service_work&bike=FR_1541&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_34567890
https://shareeapp-operator.example.tld/APIjsonserver?request=service_work&bike=FR1541&authcookie=6103_f782a208d9399291ba8d086b5dcc2509_34567890
```
**response**
@ -40,19 +42,19 @@ https://shareeapp-fr01.copri-bike.de/APIjsonserver?request=service_work&bike=FR_
"clearing_cache" : "0",
"impress_html" : "site/impress.html",
"agb_checked" : "1",
"uri_primary" : "https://shareeapp-primary.copri-bike.de",
"uri_primary" : "https://shareeapp-primary.example.tld",
"response" : "service_work",
"copri_version" : "4.0.1.3",
"lang" : "DE",
"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",
"privacy_html" : "site/privacy.html",
"authcookie" : "6103_f782a208d9399291ba8d086b5dcc2509_34567890",
@ -60,7 +62,31 @@ https://shareeapp-fr01.copri-bike.de/APIjsonserver?request=service_work&bike=FR_
"user_id" : "javaminister@example.tld",
"debuglevel" : "1",
"response_state" : "OK: nothing todo",
"FR_1541" : {
"FR1541" : {
"txt01" : {
"time_over" : "0",
"work_val" : "Achtung, Fahrradschloss Ladung unter 22%",
"service_id" : "41509",
"interval" : "0",
"work_name" : "Aufgaben",
"service_type" : "0",
"mtime" : "2022-10-28 15:33:16.817532+02",
"owner" : "188",
"user_name" : "sys API",
"work_id" : "txt01"
},
"txt01_2" : {
"work_name" : "Aufgaben",
"interval" : "0",
"work_val" : "Schutzblech fixieren",
"time_over" : "0",
"service_id" : "41512",
"user_name" : "Christian Fischer",
"work_id" : "txt01",
"mtime" : "2022-11-28 20:14:42.912067+01",
"service_type" : "0",
"owner" : "21254"
},
"int09" : {
"work_name" : "Reifenluftdruck",
"service_id" : "0",