Parameter Configuration

ConfigurationRestfulApi class

Add KeyForEngine

Interface address:/api/rest_j/v1/configuration/addKeyForEngine

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Add KeyForEngine

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
engineTypeengineTypequeryfalsestring
keyJsonkeyJsonqueryfalsestring
tokentokenqueryfalsestring
versionversionqueryfalsestring

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. }

Add application type

Interface address:/api/rest_j/v1/configuration/createFirstCategory

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Add application type tag

Request example:

  1. {
  2. "categoryName": "",
  3. "description": ""
  4. }

Request Parameters:

Parameter nameParameter descriptionRequiredRequest typeData typeschema
categoryNameReference type label namefalseStringString
descriptionDescriptionfalseStringSTRing

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/configuration/createFirstCategory",
  3. "status": 0,
  4. "message": "OK",
  5. "data": {}
  6. }

Add parameter configuration

Interface address:/api/rest_j/v1/configuration/createSecondCategory

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Add parameter configuration

Request example:

  1. {
  2. categoryId: ,
  3. description: "",
  4. engineType: "",
  5. version: ""
  6. }

Request Parameters:

Parameter nameParameter descriptionRequiredRequest typeData typeschema
categoryIdParameter ConfigurationIdtrueStringString
descriptionDescriptiontrueStringString
engineTypeEngine TypetrueStringString
versionversion numbertrueStringString

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/configuration/createSecondCategory",
  3. "status": 0,
  4. "message": "OK",
  5. "data": {}
  6. }

delete configuration

Interface address: /api/rest_j/v1/configuration/deleteCategory

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Delete parameter configuration

Request example:

  1. {
  2. categoryId:
  3. }

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
categoryIdParameter ConfigurationIdStringtrueString

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/configuration/deleteCategory",
  3. "status": 0,
  4. "message": "OK",
  5. "data": {}
  6. }

Engine type list

Interface address:/api/rest_j/v1/configuration/engineType

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Get a list of engine types

Request Parameters:

No

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. "method": "/api/configuration/engineType",
  3. "status": 0,
  4. "message": "OK",
  5. "data": {
  6. "engineType": []
  7. }
  8. }

App types

Interface address: /api/rest_j/v1/configuration/getCategory

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Apply type tag in parameter configuration

Request Parameters:

No

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. "method": "/api/configuration/getCategory",
  3. "status": 0,
  4. "message": "OK",
  5. "data": {
  6. "Category": [{
  7. "categoryId": ,
  8. "labelId": ,
  9. "categoryName": "",
  10. "childCategory": [],
  11. "description": null,
  12. "tag": null,
  13. "createTime": ,
  14. "updateTime": ,
  15. "level": ,
  16. "fatherCategoryName": ""
  17. }],
  18. "description": null,
  19. "tag": null,
  20. "createTime": ,
  21. "updateTime": ,
  22. "level": ,
  23. "fatherCategoryName":
  24. }]
  25. }
  26. }

queue resources

Interface address:/api/rest_j/v1/configuration/getFullTreesByAppName

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

The queue resource module in the parameter configuration returns the column and value of the queue resource

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
creatorlabel namequeryfalsestring
engineTypeengineTypequeryfalsestring
versionversionqueryfalsestring

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. "method": "/api/configuration/getFullTreesByAppName",
  3. "status": 0,
  4. "message": "OK",
  5. "data": {
  6. "fullTree": [{
  7. "name": "Queue Resource",
  8. "description": null,
  9. "settings": [{
  10. "id": ,
  11. "key": "",
  12. "description": "",
  13. "name": "",
  14. "defaultValue": "",
  15. "validateType": "",
  16. "validateRange": "[]",
  17. "level": 1,
  18. "engineType": ,
  19. "treeName": "",
  20. "valueId": ,
  21. "configValue": "",
  22. "configLabelId": ,
  23. "unit": null,
  24. "isUserDefined": ,
  25. "hidden": ,
  26. "advanced":
  27. }]
  28. }]
  29. }
  30. }

Get key value

Interface address:/api/rest_j/v1/configuration/keyvalue

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Get key value

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
configKeyconfigKeyquerytruestring
creatorcreatorqueryfalsestring
engineTypeengineTypequeryfalsestring
versionversionqueryfalsestring

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. }

save key value

Interface address:/api/rest_j/v1/configuration/keyvalue

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Save key value

Request Parameters:

Parameter nameParameter descriptionRequiredRequest typeData typeschema
configKeyconfigKeytrueStringString
configValueconfigValuetrueStringString
creatorcreatortrueStringString
engineTypeengineTypetrueStringString
versionversiontrueStringString
SaveKeyValuejsonbodytrueSaveKeyValueSaveKeyValue

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. }

delete key value

Interface address:/api/rest_j/v1/configuration/keyvalue

Request method: DELETE

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Delete key value

Request Parameters:

Parameter nameParameter descriptionRequiredRequest typeData typeschema
configKeyconfigKeytrueStringString
creatorcreatortrueStringString
engineTypeengineTypetrueStringString
versionversiontrueStringString

Response Status:

Status codeDescriptionschema
200OKMessage
204No Content
401Unauthorized
403Forbidden

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. }

rpc test

Interface address: /api/rest_j/v1/configuration/rpcTest

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

rpc test

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
creatorcreatorqueryfalsestring
engineTypeengineTypequeryfalsestring
usernameusernamequeryfalsestring
versionversionqueryfalsestring

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. }

Save queue resources

Interface address:/api/rest_j/v1/configuration/saveFullTree

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Save queue resources

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
creatorApp Type NameStringtrueString
descriptionDescription, belonging to the content in fullTreeStringtrueString
engineTypeEngine TypeStringtrueString
fullTreeDetails under Application TypeListtrueList
nameQueue resource name, which belongs to the content in fullTreeStringtrueString
settingsDetailed content in the queue resource, belonging to the content in fullTreeListtrueList

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/configuration/saveFullTree",
  3. "status": 0,
  4. "message": "OK",
  5. "data": {}
  6. }

Update category information

Interface address: /api/rest_j/v1/configuration/updateCategoryInfo

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Update category information

Sample Response:

  1. {
  2. description: "",
  3. categoryId:
  4. }

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
categoryIdcategoryIdStringtrueString
descriptiondescriptionStringtrueString

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/configuration/updateCategoryInfo",
  3. "status": 0,
  4. "message": "OK",
  5. "data": {}
  6. }