Get a specific case by case Id
get
/PASService/rest/services/v1/cases/{caseId}
Gets a case based on the specified case Id such as Case fields, Policy, PolicyField, Roles, RoleField, Segment, and SegmentField.
Request
Path Parameters
-
caseId(required): string(guid)
Case Id
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
This operation fetches all the cases by case Id successfully.
Examples
This example describes how to get a case based on the specified case Id.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl \ -X GET \ -H "Content-Type: application/json" \ -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \ -L "http://server:port/PASService/rest/services/v1/cases?q=companyId eq "7204C2FE-13B1-4A48-8CDA-DE8386C60EF9""
Example Response Body
The following shows an example of the response body in JSON format:
{
"case": {
"links": [
{
"href": "http://server:port/PASService/rest/services/v1/cases/5203C2FE-13B1-4A48-8CDA-DE8386C60EF9",
"rel": "self",
"mediaType": "application/json",
"method": "GET"
},
{
"href": "http://server:port/PASService/rest/services/v1/cases/5203C2FE-13B1-4A48-8CDA-DE8386C60EF9/policies",
"rel": "policies",
"mediaType": "application/json",
"method": "GET"
},
{
"href": "http://server:port/PASService/rest/services/v1/codes?codeName=CaseStatus&codeValue=02",
"rel": "codes/status",
"mediaType": "application/json",
"method": "GET"
}
],
"codes": [
{
"codeName": "AsCodeCaseStatus",
"codeValue": "02",
"longDescription": "In Progress",
"shortDescription": "In Progress"
}
],
"caseName": "test",
"caseNumber": "CaseA",
"creationDate": "2019-03-20T00:00:00Z",
"policies": null,
"caseId": "5203C2FE-13B1-4A48-8CDA-DE8386C60EF9",
"companyId": "7204C2FE-13B1-4A48-8CDA-DE8386C60EF9",
"status": "02",
"updatedDateTime": "2019-03-20T09:36:42Z"
}
}