Get list of requirements for a policy
get
/PASService/rest/services/policies/{id}/requirements
Get all requirements associated with a policy based on the specified policy Id
Request
Path Parameters
-
id: string
Pattern:
\{?[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}?
Policy Id
Query Parameters
-
expand(optional): string
codes
Response
Supported Media Types
- application/json
Default Response
successful operation
Examples
This example describes how to get all requirements associated with a policy based on the specified policy Id.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X GET -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/policies/C9343F06-0EDE-432E-86A3-36FF14E65379/requirements"
Example Response Body
The following shows an example of the response body in JSON format:
"{ "count": 1, "requirements": [ { "links": [ { "href": "http://server:port/PASService/rest/services/policies/C9343F06-0EDE-432E-86A3-36FF14E65379/requirements/A4B41B90-78FB-40A7-8754-33609294C4F6", "rel": "self", "mediaType": "application/json", "method": "GET" }, { "href": "http://server:port/PASService/rest/services/codes?codeName=RequirementStatus&codeValue=00", "rel": "codes/status", "mediaType": "application/json", "method": "GET" } ], "multiFields": {}, "message": "TestA", "comments": "TEst", "openDate": "2015-08-04T00:00:00Z", "closeDate": "2016-08-04T00:00:00Z", "dueDate": "2015-08-04T00:00:00Z", "expirationDate": "2020-08-04T00:00:00Z", "overdueGmt": "2015-08-04T00:00:00Z", "nextProcessGmt": "2019-03-09T13:49:02Z", "lockedGmt": "2015-08-04T00:00:00Z", "createdBy": "qatester3", "lastModifiedBy": "SYSTEM", "policyId": "C9343F06-0EDE-432E-86A3-36FF14E65379", "clientId": "C438DD29-16D8-4CEB-96B2-A44F8509A90E", "fullName": "Test A", "requirementId": "A4B41B90-78FB-40A7-8754-33609294C4F6", "requirementDefinitionId": "8E139408-0B64-477E-BE6B-FF9F880D1E26", "status": "00", "requirementType": "Test", "previousStatus": "01", "createdDate": "2018-11-12T10:41:34Z", "lastmodifiedDate": "2019-03-09T13:44:02Z", "requirementDefinition": { "links": [ { "href": "http://server:port/PASService/rest/services/codes?codeName=RequirementSeverity&codeValue=02", "rel": "codes/severity", "mediaType": "application/json", "method": "GET" }, { "href": "http://server:port/PASService/rest/services/codes?codeName=RequirementLevel&codeValue=02", "rel": "codes/level", "mediaType": "application/json", "method": "GET" }, { "href": "http://server:port/PASService/rest/services/codes?codeName=RequirementCategory&codeValue=04", "rel": "codes/category", "mediaType": "application/json", "method": "GET" } ], "fields": {}, "multiFields": {}, "requirementName": "Reinsurance Transmittal", "description": "Reinsurance Transmittal ", "stateCode": "CA", "message": "TestA", "manualResults": 1, "resultsObsoleteDays": 0, "requirementDefinitionId": "8E139408-0B64-477E-BE6B-FF9F880D1E26", "level": "02", "severity": "02", "category": "04", "companyId": "80798FC2-FEB9-4998-A575-513FF89698B1", "planId": "C438DD29-16D8-4CEB-96B2-A44F8509A90E", "transactionId": "E0CB2711-6967-4DF4-AFE9-324D8F0B6562" }, "RequirementType": "01", "ApplicationNumber": "CASE01" } ] } "