Additional LOB-specific endpoints
LOB-specific endpoints in the Policy API
When you generate LOB-specific endpoints, endpoints are added to both the Job API and the Policy API.
- The Job API endpoints give you the ability to retrieve, create, modify, and delete LOB-specific resources.
- The Policy API endpoints give you only the ability to retrieve LOB-specific resources.
As a general rule, for every LOB-specific GET in the Job API, there is a corresponding GET in the Policy API. The Policy API GETs can only be used for existing policies. They cannot retrieve job-specific information.
For example, the Personal Auto product discussed in the previous examples would have the following GETs in the Policy API:
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/coverages
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/coverages/{coverageId}
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/modifiers
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/modifiers/{modifierId}
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/policy-driver-mvrs
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/policy-driver-mvrs/{policyDriverMVRId}
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/questions
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/vehicles
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/vehicles/{vehicleId}
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/vehicles/{vehicleId}/coverages
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/vehicles/{vehicleId}/coverages/{coverageId}
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/vehicles/{vehicleId}/drivers
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/vehicles/{vehicleId}/drivers/{driverId}
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/vehicles/{vehicleId}/modifiers
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/vehicles/{vehicleId}/modifiers/{modifierId}
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/vehicles/{vehicleId}/vhcle-addl-interests
- GET
/policy/v1/policies/{policyId}/lines/PersonalAutoLine/vehicles/{vehicleId}/vhcle-addl-interests/{vhcleAddlInterestId}