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 name Parameter description Request type Required Data type schema
globalVariables Added parameter data one-to-many key:globalVariables,value:List Map true Map
key Parameter name, belonging to globalVariables String true String
value variable value, and key belong to the key-value pair that is contained by globalVariables List true List

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