Difference between revisions of "SmartJobCenter"
From RobotinoWiki
(→/jobinfo) |
(→GET methods) |
||
Line 51: | Line 51: | ||
} | } | ||
</pre> | </pre> | ||
+ | |||
+ | ==POST methods== | ||
+ | ===/createjob=== |
Revision as of 11:42, 5 August 2021
Contents
Introduction
REST API to manage jobs and to read job status information. |
GET methods
/jobs
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" }, { "robot" : 10, "job" : 11, "position" : 2, "state" : "DRIVING", "life-cycle-state" : "RUNNING" } ] }