Configuration API
Description
Configuration is where install specific data will be housed. This will represent a single row in a Configuration database table. A default Configuration record will be loaded on initial startup/deployment of the SSP application.
Get Configuration
GET /ssp/api/1/reference/config
Security
SERVICE_REFERENCE_READ
Returns
All Configuration Values
{success: "true", message: "", results: 13, rows: [ {id: "e99ff3c7-6a59-4812-b3b1-285fa8764d3a", createdDate: 1337878800000, createdBy: {id: "58ba5ee3-734e-4ae9-b9c5-943774b4de41", firstName: "System", lastName: "Administrator"}, modifiedDate: 1337878800000, modifiedBy: {id: "58ba5ee3-734e-4ae9-b9c5-943774b4de41", firstName: "System", lastName: "Administrator"}, objectStatus: "ACTIVE", name: "inst_name", description: "Institution name", value: "My Edu", valueValidation: null, defaultValue: "My Edu", sortOrder: 99} ] }
Get Configuration by Parameter
GET /ssp/api/1/reference/config?name='parameter'
Security
SERVICE_REFERENCE_READ
Returns
Configuration Values by Parameters
{id: "59dbcf48-9be3-11e1-bded-0026b9e7ff4c", createdDate: 1336417200000, createdBy: {id: "58ba5ee3-734e-4ae9-b9c5-943774b4de41", firstName: "System", lastName: "Administrator"}, modifiedDate: 1336417200000, modifiedBy: {id: "58ba5ee3-734e-4ae9-b9c5-943774b4de41", firstName: "System", lastName: "Administrator"}, objectStatus: "ACTIVE", name: "bcc_email_address", description: "The email address to blind carbon copy on every message", value: "noone@test.com", valueValidation: null, defaultValue: "noone@test.com", sortOrder: 100}
Save Configuration
PUT /ssp/api/1/reference/config/{id}
Note that default values cannot be modified via this resource.
Security
SERVICE_REFERENCE_WRITE
Sample Post
{"id" : "6201b18d-9d1d-48d3-82d4-092e52ad676b", "name": "bcc_email_address", "description": "The email address to blind carbon copy on every message", "value": "noone@test.com", "valueValidation": null, "sortOrder": 100}
Returns
Configuration
{"id" : "6201b18d-9d1d-48d3-82d4-092e52ad676b", "name": "bcc_email_address", "description": "The email address to blind carbon copy on every message", "value": "noone@test.com", "valueValidation": null, "sortOrder": 100}