Difference between revisions of "SmartJobCenter"

From RobotinoWiki
(Response)
(Response)
Line 29: Line 29:
 
<pre>
 
<pre>
 
{
 
{
   "robot" : 10,
+
   "jobs" : [
  "job" : 10,
+
    {
  "priority" : 1,
+
      "robot" : 10,
  "fromstation" : 2,
+
      "job" : 10,
  "frombelt" : 1,
+
      "priority" : 1,
  "tostation" : 3,
+
      "fromstation" : 2,
  "tobelt" : 4,
+
      "frombelt" : 1,
  "state" : "DRIVING",
+
      "tostation" : 3,
  "life-cycle-state" : "RUNNING"  
+
      "tobelt" : 4,
 +
      "state" : "DRIVING",
 +
      "life-cycle-state" : "RUNNING"
 +
    },
 +
    {
 +
    }
 +
  ]
 
}
 
}
 
</pre>
 
</pre>

Revision as of 11:37, 5 August 2021

Introduction

SmartJobCenter 64.png REST API to manage jobs and to read job status information.

GET methods

/jobinfo

Query Params

KEY VALUE DESCRIPTION
robot Robot ID. Only return jobs assigned to the given robot.
job Job ID. Only return job with the given ID.

Response

TYPE
JSON
STATUS CODE
200 OK
Example
{
  "jobs" : [
    {
      "robot" : 10,
      "job" : 10,
      "priority" : 1,
      "fromstation" : 2,
      "frombelt" : 1,
      "tostation" : 3,
      "tobelt" : 4,
      "state" : "DRIVING",
      "life-cycle-state" : "RUNNING"
    },
    {
    }
  ]
}