Global Variable API

VariableRestfulApi class

Interface address:/api/rest_j/v1/variable/saveGlobalVariable

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Add global variables

Request example:

  1. {
  2. globalVariables: [{
  3. keyID: ,
  4. key: "",
  5. valueID: ,
  6. value: ""
  7. }]
  8. }

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
globalVariablesAdded parameter data one-to-many key:globalVariables,value:ListMaptrueMap
keyParameter name, belonging to globalVariablesStringtrueString
valuevariable value, and key belong to the key-value pair that is contained by globalVariablesListtrueList

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