Fixed some items in the docs

pull/1/head
Piero Toffanin 2016-09-16 20:42:30 -04:00
rodzic 3b4554b056
commit 98ff96e928
3 zmienionych plików z 20 dodań i 16 usunięć

Wyświetl plik

@ -56,11 +56,11 @@ Retrieves the command line options that can be passed to process a task
[options="header", cols=".^2,.^14,.^4"]
|===
|HTTP Code|Description|Schema
|*200*|Options|< <<_getoptions_get_response_200,Response 200>> > array
|*200*|Options|< <<_option,Option>> > array
|===
[[_getoptions_get_response_200]]
*Response 200*
[[_option]]
*Option*
[options="header", cols=".^3,.^11,.^4"]
|===
@ -253,30 +253,30 @@ _required_|UUID of the task|string|
[options="header", cols=".^2,.^14,.^4"]
|===
|HTTP Code|Description|Schema
|*200*|Task Information|<<_task_uuid_info_get_response_200,Response 200>>
|*200*|Task Information|<<_taskinfo,TaskInfo>>
|*default*|Error|<<_error,Error>>
|===
[[_task_uuid_info_get_response_200]]
*Response 200*
[[_taskinfo]]
*TaskInfo*
[options="header", cols=".^3,.^11,.^4"]
|===
|Name|Description|Schema
|*dateCreated* +
_optional_|Timestamp|integer
_required_|Timestamp|integer
|*imagesCount* +
_optional_|Number of images|integer
_required_|Number of images|integer
|*name* +
_optional_|Name|string
_required_|Name|string
|*options* +
_optional_|List of options used to process this task|< <<_task_uuid_info_get_options,options>> > array
_required_|List of options used to process this task|< <<_task_uuid_info_get_options,options>> > array
|*processingTime* +
_optional_|Milliseconds that have elapsed since the task started being processed.|integer
_required_|Milliseconds that have elapsed since the task started being processed.|integer
|*status* +
_optional_|Status code (10 = QUEUED, 20 = RUNNING, 30 = FAILED, 40 = COMPLETED, 50 = CANCELED)|integer
_required_|Status code (10 = QUEUED, 20 = RUNNING, 30 = FAILED, 40 = COMPLETED, 50 = CANCELED)|integer
|*uuid* +
_optional_|UUID|string
_required_|UUID|string
|===
[[_task_uuid_info_get_options]]
@ -286,9 +286,9 @@ _optional_|UUID|string
|===
|Name|Description|Schema
|*name* +
_optional_|Option name (example: "odm_meshing-octreeDepth")|string
_required_|Option name (example: "odm_meshing-octreeDepth")|string
|*value* +
_optional_|Value (example: 9)|string
_required_|Value (example: 9)|string
|===

File diff suppressed because one or more lines are too long

Wyświetl plik

@ -192,7 +192,9 @@ let getTaskFromUuid = (req, res, next) => {
* 200:
* description: Task Information
* schema:
* title: TaskInfo
* type: object
* required: [uuid, name, dateCreated, processingTime, status, options, imagesCount]
* properties:
* uuid:
* type: string
@ -215,6 +217,7 @@ let getTaskFromUuid = (req, res, next) => {
* description: List of options used to process this task
* items:
* type: object
* required: [name, value]
* properties:
* name:
* type: string
@ -412,6 +415,7 @@ app.post('/task/restart', uuidCheck, (req, res) => {
* schema:
* type: array
* items:
* title: Option
* type: object
* properties:
* name: