Task Action

EntranceRestfulApi class

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 nameParameter descriptionRequest typeRequiredData typeschema
jsonjsonbodytrueobject

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

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 nameParameter descriptionRequest typeRequiredData typeschema
SubmitjsonbodytrueSubmitSubmit

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

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 nameParameter descriptionRequest typeRequiredData typeschema
idIDpathfalsestring
taskIDtaskIDqueryfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

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 nameParameter descriptionRequiredRequest typeData typeschema
idid request path generationtruestringstring
taskIDListcollection of task IDsfalseStringString
idListID collectionfalseStringString

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(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. }

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 nameParameter descriptionRequest typeRequiredData typeschema
idTask IDpathfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

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 nameParameter descriptionRequest typeRequiredData typeschema
idTask IDpathfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

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 nameParameter descriptionRequest typeRequiredData typeschema
idTask IDpathfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

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 nameParameter descriptionRequest typeRequiredData typeschema
idIDpathfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

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 nameParameter descriptionRequest typeRequiredData typeschema
idIDpathfalsestring
taskIDtaskIDqueryfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }