REST API - getCaseModel

The table summarizes the REST API - getCaseModel.

Request

Format
GET <baseurl>/globaldata/admin/casemodel/scripts
Query parameters name=string (optional): the name of the application that generated the case model. If you do not specify an application name, the response returns the information for all case models.

Response

JSON Returns a JSON representation of the contents of a GetCaseModelResponse element.
XML Returns the contents of a GetCaseModelResponse element (from the BusinessDataServicesAdminService schema)

Example

Request
GET <baseurl>/globaldata/admin/casemodel/scripts
Response
{

"caseModel":

{

"caseModelID": 1,

"appName": "com.example.claimmodel-1",

"currentVersion": "1.0.0",

"datetimeDeploymentUpdated": "2013-11-19T10:57:26.977Z",

"createScript": "---------------------------------------- TIBCO HEADER ---------------------------------------- -- BOM Name : ClaimModel.bom -- BOM Namespace : com.example.claimbom -- Namespace Tag : CLAIMBOM -- BOM Major Version : 1 -- Table Mappings : (BOM Class -> DB Table) -- com.example.claimbom.Claim BDS_1_CLAIMBOM_CLAIM -- com.example.claimbom.Person BDS_1_CLAIMBOM_PERSON -- com.example.claimbom.Policy BDS_1_CLAIMBOM_POLICY -- com.example.claimbom.Claimant BDS_1_CLAIMBOM_CLAIMANT -- com.example.claimbom.IncidentDetails BDS_1_CLAIMBOM_INCIDENTDETAILS -- com.example.claimbom.CustomerNotes BDS_1_CLAIMBOM_CUSTOMERNOTES ---------------------------------------------------------------------create table [BDS_1_CLAIMBOM_CLAIMANT] ([BDS_ID] numeric(19,0) not null, [DTYPE] nvarchar(255) not null, [BDS_VERSION] numeric(19,0) null, [PARTY] nvarchar(255) null, [BDS_OWNER_ID] numeric(19,0) null, [CLAIM_CLAIMANTS_BDSID] numeric(19,0) null, [CLAIM_CLAIMANTS_IDX] int null, primary key ([BDS_ID]));

.

.

.

}",

"frozenDetails":

{

"@isFrozen": "false"

},

"state": "PENDING_DBA_ACTION_TO_INSTALL"

}

}