Implementing the /recover-new-jobs endpoint

To implement the /recover-new-jobs endpoint, you must do the following:

  1. Define search criteria properties in the RecoverNewJobsWrapperExt class
  2. Define query logic in the RecoverNewJobsExtResource class
  3. Extend the RecoverNewJobsRequestAttributes schema

Sample implementation examples

The following topics contains sample code for a complete implementation for the reauthorize anonymous user flow. In this sample:

  • The caller application submits one or more of the following values:
    • Account number
    • Job number
    • First name (of the primary insured)
    • Last name (of the primary insured)
    • Postal code (of the primary insured)
  • The endpoint returns any jobs that:
    • Meet the implicit criteria for new job recovery (such as the job is an unbound submission)
    • Has an exact match with all values submitted

Note that, as this is a sample implementation, none of the properties are required. This includes First Name and Last Name, each of which can be specified without specifying the other.

Warning: This implementation has not gone through any risk assessment. Guidewire does not recommend using this example in a production environment, as it may expose secure data and it may not have acceptable performance. Guidewire recommends that insurers implement their own search logic and that they ensure their implementation is secure and has sufficient performance.