Add missing documentation about state in jobs endpoint

This commit is contained in:
fieldOfView committed 2019-02-28 11:40:22 +01:00
1 parent e08becbb4c
commit c652bed871
2 files changed
+25 -2

No files matched your search

+19
View File
@@ -219,6 +219,25 @@ Progress information
- Integer
- Estimate of time left to print, in seconds
.. _sec-api-datamodel-jobs-state:
State information
-----------------
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - body
- 1
- String
- A textual representation of the current state of the job, i.e. "Operational", "Printing", "Pausing", "Paused",
"Cancelling", "Error" or "Offline".
.. _sec-api-datamodel-files:
File related
+6 -2
View File
@@ -212,7 +212,8 @@ Retrieve information about the current job
"filepos": 337942,
"printTime": 276,
"printTimeLeft": 912
}
},
"state": "Printing"
}
:statuscode 200: No error
@@ -243,4 +244,7 @@ Job information response
- 1
- :ref:`sec-api-datamodel-jobs-progress`
- Information regarding the progress of the current print job
* - ``state``
- 1
- :ref:`sec-api-datamodel-jobs-state`
- Information regarding the state of the current print job