GET Policy

Returns policies in OIPA. Search results will contain all policy fields (fixed fields, dynamic fields and MV fields ) and only HATEOAS links will be available for roles and segments . Segment and Roles will not be expanded by default.

Use expand= all to expand subresources, it returns Last time stamped 100 policies.

It is recommended to use filters to reduce traffic.

Resource/Request URI

http://server:port/PASService/rest/services//policies

Method

GET

Sample JSON Response

{
    "count": 1,
    "offset": 0,
    "limit": 25,
    "policies": [{
        "policyId": "59028388-E882-47AB-8654-1301C8E9E604",
        "policyNumber": "PLM1234",
        "issueStateCode": "PA",
        "planDate": null,
        "status": "Pending",
        "companyId": "59028388-E882-47AB-8654-1301C8E9E60K",
        "planId": "W9028388-E882-47AB-8654-1301C8E9E60K",
        "updatedDate": "2012-04-23T18:25:43.511Z",
        "systemcode": "NBU",
        "sendingApplication": "AgentApp",
        "agentLicense": "JKL7171",
        "Links": [{
                "href": "https: //localhost:8080/PASService/rest/services/policies/59028388-E882-47AB-8654-1301C8E9E604/roles",
                "rel": "roles",
                "mediaType": "application/json",
                "method": "GET"
            },
            {
                "href": "https: //localhost:8080/PASService/rest/services/policies/59028388-E882-47AB-8654-1301C8E9E604",
                "rel": "self",
                "mediaType": "application/json",
                "method": "GET"
            },
            {
                "href": "https: //localhost:8080/PASService/rest/services/policies/59028388-E882-47AB-8654-1301C8E9E604/segments",
                "rel": "segments",
                "mediaType": "application/json",
                "method": "GET"
            }
    }]
}