Values
BETA: This functionality is under development and there may be changes not reflected in this help.
This section handles the domains values configuration.
GET /domains/{id}/values
This method returns the list of domains.
Request attribute:
- id [mandatory]: the Id of the domain.
Request parameters:
- company [mandatory]: the company name or id.
- session [mandatory]: the Id of the active session.
Response:
- status: returns "0" on success, and an error code in any other case.
- data: returns the list of values of the combo.
- message: "Success" or a descriptive information of the error in any other case.
Request: { "session": "cJvqHJcEssmpGukxrZF73migL5M4LVUZniyesQHBatOvTkrbpkYgrHKvfVpP", "company": "demo01", "idcomb": "No" } Response: { "status": "0", "data": [ { "Val": "No" }, { "Val": "Si" } ], "message": "Success" } |
POST/domains/{id}/values
This method create a value of a domain. The user must have the administrator role.
Request attribute:
- id [mandatory]: the Id of the domain.
Request parameters:
- company [mandatory]: the company name or id.
- session [mandatory]: the Id of the active session.
- description [mandatory]:the description of the combo.
Response:
- status: returns "0" on success, and an error code in any other case.
- data: "success" on success, and empty in case of error.
- message: "success" or a descriptive information of the error in any other case.
Request: { "session": "cJvqHJcEssmpGukxrZF73migL5M4LVUZniyesQHBatOvTkrbpkYgrHKvfVpP", "company": "demo01", "idcomb": "test", "value": "value1" } Response: { "status": 0, "data": true, "message": "Success" }": "Success" } |
DELETE /domains/{id}/values
This method deletes the values of a domain. The user must have the administrator role.
Request attribute:
- id [mandatory]: the Id of the domain.
Request parameters:
- company [mandatory]: the company name or id.
- session [mandatory]: the Id of the active session.
Response:
- status: returns "0" on success, and an error code in any other case.
- data: "success" on success, and empty in case of error.
- message: "success" or a descriptive information of the error in any other case.
Request: { "session": "cJvqHJcEssmpGukxrZF73migL5M4LVUZniyesQHBatOvTkrbpkYgrHKvfVpP", "company": "demo01", "idcomb": "test" } Response: { "status": 0, "data": true, "message": "Success" } |