Task Action
EntranceRestfulApi class
process task request
Interface address:/api/rest_j/v1/entrance/execute
Request method: POST
Request data type: application/json
Response data type: */*
Interface description:
The execute function handles the request submitted by the user to execute the task
Request Parameters:
| Parameter name | Parameter description | Request type | Required | Data type | schema |
|---|---|---|---|---|---|
| json | json | body | true | object |
Response Status:
| Status code | Description | schema |
|---|---|---|
| 200 | OK | Message |
| 201 | Created | |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response parameters:
| parameter name | parameter description | type | schema |
|---|---|---|---|
| data | Dataset | object | |
| message | Description | string | |
| method | request url | string | |
| status | Status | integer(int32) | integer(int32) |
Sample Response:
1. {
2. "data": {},
3. "message": "",
4. "method": "",
5. "status": 0
6. }
Submit the execute function
Interface address:/api/rest_j/v1/entrance/submit
Request method: POST
Request data type: application/json
Response data type: */*
Interface description:
Submit execute function
Request Parameters:
| Parameter name | Parameter description | Request type | Required | Data type | schema |
|---|---|---|---|---|---|
| Submit | json | body | true | Submit | Submit |
Response Status:
| Status code | Description | schema |
|---|---|---|
| 200 | OK | Message |
| 201 | Created | |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response parameters:
| parameter name | parameter description | type | schema |
|---|---|---|---|
| data | Dataset | object | |
| message | Description | string | |
| method | request url | string | |
| status | Status | integer(int32) | integer(int32) |
Sample Response:
1. {
2. "data": {},
3. "message": "",
4. "method": "",
5. "status": 0
6. }
end task
Interface address: /api/rest_j/v1/entrance/{id}/kill
Request method: GET
Request data type: application/x-www-form-urlencoded
Response data type: */*
Interface description:
kill task
Request Parameters:
| Parameter name | Parameter description | Request type | Required | Data type | schema |
|---|---|---|---|---|---|
| id | ID | path | false | string | |
| taskID | taskID | query | false | string |
Response Status:
| Status code | Description | schema |
|---|---|---|
| 200 | OK | Message |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response parameters:
| parameter name | parameter description | type | schema |
|---|---|---|---|
| data | Dataset | object | |
| message | Description | string | |
| method | request url | string | |
| status | Status | integer(int32) | integer(int32) |
Sample Response:
1. {
2. "data": {},
3. "message": "",
4. "method": "",
5. "status": 0
6. }
End Jobs
Interface address: /api/rest_j/v1/entrance/{id}/killJobs
Request method: POST
Request data type: application/json
Response data type: */*
Interface description:
End Jobs
Request example:
1. {
2. "taskIDList": [],
3. "idList": []
4. }
Request Parameters:
| Parameter name | Parameter description | Required | Request type | Data type | schema |
|---|---|---|---|---|---|
| id | id request path generation | true | string | string | |
| taskIDList | collection of task IDs | false | String | String | |
| idList | ID collection | false | String | String |
Response Status:
| Status code | Description | schema |
|---|---|---|
| 200 | OK | Message |
| 201 | Created | |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response parameters:
| parameter name | parameter description | type | schema |
|---|---|---|---|
| data | Dataset | object | |
| message | Description | string | |
| method | request url | string | |
| status | Status | integer(int32) | integer(int32) |
Sample Response:
1. {
2. "method": "/api/entrance/#id/killJobs",
3. "status": 0,
4. "message": "success",
5. "data": {
6. "messages": [{
7. "method": "",
8. "status": 0,
9. "message": "",
10. "data": {
11. "execID": ""
12. }
13. }]
14. }
15. }
task log
Interface address: /api/rest_j/v1/entrance/{id}/log
Request method: GET
Request data type: application/x-www-form-urlencoded
Response data type: */*
Interface description:
Get task log
Request Parameters:
| Parameter name | Parameter description | Request type | Required | Data type | schema |
|---|---|---|---|---|---|
| id | Task ID | path | false | string |
Response Status:
| Status code | Description | schema |
|---|---|---|
| 200 | OK | Message |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response parameters:
| parameter name | parameter description | type | schema |
|---|---|---|---|
| data | Dataset | object | |
| message | Description | string | |
| method | request url | string | |
| status | Status | integer(int32) | integer(int32) |
Sample Response:
1. {
2. "data": {},
3. "message": "",
4. "method": "",
5. "status": 0
6. }
Pause task
Interface address:/api/rest_j/v1/entrance/{id}/pause
Request method: GET
Request data type: application/x-www-form-urlencoded
Response data type: */*
Interface description:
Pause task
Request Parameters:
| Parameter name | Parameter description | Request type | Required | Data type | schema |
|---|---|---|---|---|---|
| id | Task ID | path | false | string |
Response Status:
| Status code | Description | schema |
|---|---|---|
| 200 | OK | Message |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response parameters:
| parameter name | parameter description | type | schema |
|---|---|---|---|
| data | Dataset | object | |
| message | Description | string | |
| method | request url | string | |
| status | Status | integer(int32) | integer(int32) |
Sample Response:
1. {
2. "data": {},
3. "message": "",
4. "method": "",
5. "status": 0
6. }
Mission progress
Interface address:/api/rest_j/v1/entrance/{id}/progress
Request method: GET
Request data type: application/x-www-form-urlencoded
Response data type: */*
Interface description:
Task progress
Request Parameters:
| Parameter name | Parameter description | Request type | Required | Data type | schema |
|---|---|---|---|---|---|
| id | Task ID | path | false | string |
Response Status:
| Status code | Description | schema |
|---|---|---|
| 200 | OK | Message |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response parameters:
| parameter name | parameter description | type | schema |
|---|---|---|---|
| data | Dataset | object | |
| message | Description | string | |
| method | request url | string | |
| status | Status | integer(int32) | integer(int32) |
Sample Response:
1. {
2. "data": {},
3. "message": "",
4. "method": "",
5. "status": 0
6. }
Resource progress
Interface address:/api/rest_j/v1/entrance/{id}/progressWithResource
Request method: GET
Request data type: application/x-www-form-urlencoded
Response data type: */*
Interface description:
Resource progress
Request Parameters:
| Parameter name | Parameter description | Request type | Required | Data type | schema |
|---|---|---|---|---|---|
| id | ID | path | false | string |
Response Status:
| Status code | Description | schema |
|---|---|---|
| 200 | OK | Message |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response parameters:
| parameter name | parameter description | type | schema |
|---|---|---|---|
| data | Dataset | object | |
| message | Description | string | |
| method | request url | string | |
| status | Status | integer(int32) | integer(int32) |
Sample Response:
1. {
2. "data": {},
3. "message": "",
4. "method": "",
5. "status": 0
6. }
task status
Interface address:/api/rest_j/v1/entrance/{id}/status
Request method: GET
Request data type: application/x-www-form-urlencoded
Response data type: */*
Interface description:
Task status
Request Parameters:
| Parameter name | Parameter description | Request type | Required | Data type | schema |
|---|---|---|---|---|---|
| id | ID | path | false | string | |
| taskID | taskID | query | false | string |
Response Status:
| Status code | Description | schema |
|---|---|---|
| 200 | OK | Message |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response parameters:
| parameter name | parameter description | type | schema |
|---|---|---|---|
| data | Dataset | object | |
| message | Description | string | |
| method | request url | string | |
| status | Status | integer(int32) | integer(int32) |
Sample Response:
1. {
2. "data": {},
3. "message": "",
4. "method": "",
5. "status": 0
6. }
