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.
Requires Administrator level access.
Get Configuration
GET /ssp/api/1/reference/configurationconfig
Security
SERVICE_REFERENCE_READ
Returns
All Configuration Values
Code Block |
---|
{"id" success: "6201b18d-9d1d-48d3-82d4-092e52ad676btrue", message: "createdBy", results: 13, rows: [ {"id" : "91f46e39e99ff3c7-cea86a59-422b4812-b215b3b1-00f6bcf5d280285fa8764d3a", createdDate: 1337878800000, "firstName" createdBy: "John", {id: "lastName" 58ba5ee3-734e-4ae9-b9c5-943774b4de41", firstName: "DoeSystem"}, lastName: "createdDateAdministrator"}, modifiedDate: "1332216000000"1337878800000, " modifiedBy" : {"id" : "91f46e3958ba5ee3-cea8734e-422b4ae9-b215b9c5-00f6bcf5d280943774b4de41", firstName: "System", lastName: "firstNameAdministrator"}, objectStatus: "JohnACTIVE", name: "inst_name", "lastName" description: "DoeInstitution name"}, "modifiedDate" value: "1332216000000My Edu", "objectStatus" valueValidation: "ACTIVE"null, "defaultEarlyAlertCoordinatorId" defaultValue: "91f46e39-cea8-422b-b215-00f6bcf5d280My Edu", "documentStorageLocation" sortOrder: "C:\SSP\Documents"} |
Save Configuration
...
99}
]
}
|
Get Configuration by Parameter
GET /ssp/api/1/reference/configuration/{id}Sample Postconfig?name='parameter'
Security
SERVICE_REFERENCE_READ
Returns
Configuration Values by Parameters
Code Block |
---|
{"id" : "6201b18d59dbcf48-9d1d9be3-48d311e1-82d4bded-092e52ad676b0026b9e7ff4c", createdDate: "1336417200000, createdBy" : {"id" : "91f46e3958ba5ee3-cea8734e-422b4ae9-b215b9c5-00f6bcf5d280943774b4de41", "firstName" firstName: "JohnSystem", "lastName" lastName: "DoeAdministrator"}, "createdDate" modifiedDate: "1332216000000"1336417200000, "modifiedBy" : {"id" : "91f46e3958ba5ee3-cea8734e-422b4ae9-b215b9c5-00f6bcf5d280943774b4de41", "firstName" firstName: "System", lastName: "JohnAdministrator"}, objectStatus: "lastNameACTIVE", name: "Doebcc_email_address"}, description: "The email address "modifiedDate"to : "1332216000000", "objectStatus" : "ACTIVEblind carbon copy on every message", value: "defaultEarlyAlertCoordinatorIdnoone@test.com", valueValidation: "91f46e39-cea8-422b-b215-00f6bcf5d280"null, defaultValue: "documentStorageLocationnoone@test.com", sortOrder: "C:\SSP\Documents"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
Code Block |
---|
{"id" : "6201b18d-9d1d-48d3-82d4-092e52ad676b", "createdByname" : "bcc_email_address", {"iddescription" : "91f46e39-cea8-422b-b215-00f6bcf5d280", "firstName" : "John", "lastName" : "Doe"}, "createdDate" : "1332216000000", "modifiedBy" : The email address to blind carbon copy on every message", "value": "noone@test.com", "valueValidation": null, "sortOrder": 100} |
Returns
Configuration
Code Block |
---|
{"id" : "91f46e396201b18d-cea89d1d-422b48d3-b21582d4-00f6bcf5d280092e52ad676b", "firstNamename" : "Johnbcc_email_address", "lastNamedescription" : "Doe"}, "modifiedDate" : "1332216000000"The email address to blind carbon copy on every message", "objectStatusvalue" : "ACTIVEnoone@test.com", "defaultEarlyAlertCoordinatorIdvalueValidation" : "91f46e39-cea8-422b-b215-00f6bcf5d280"null, "documentStorageLocationsortOrder" : "C:\SSP\Documents"100} |