Skip to main content

Consume Cloud APIs using the Digital SDK

As a frontend developer building Jutro apps on Guidewire Cloud, you need to interface with InsuranceSuite through PolicyCenter and ClaimCenter Cloud APIs. This often involves the meticulous construction of HTTP requests, preparation of headers, systematic error handling, and the assurance of correctly formatted data payloads. Such tasks, while essential, can duplicate code and potentially divert your focus from building application-centric logic that solves business problems.

Why use the Digital SDK?

The Digital SDK is purposefully designed to work with InsuranceSuite Cloud APIs and facilitate your interaction with them. Unlike many other SDK approaches that encapsulate or orchestrate different REST APIs to execute a complex transaction, the Digital SDK is auto-generated from the API structure based on the OpenAPI definition. The Digital SDK implements a one-to-one correspondence between the generated JavaScript functions and the API endpoints. This design approach ensures that you maintain a clear line of sight to the underlying API, eliminating unnecessary layers of abstraction.

The main advantage of using the Digital SDK for interacting with Cloud APIs is the significant reduction in boilerplate code associated with CRUD operations. The Digital SDK helps you achieve the following:

  • More focus on application-centric concerns - with predefined functions tailored to specific policy, claims, and product operations, you can expedite the development of unique P&C Web experiences.
  • Increased development speed - with UI adapters provided by the Digital SDK, you can dynamically render entire screens based on product definitions for custom lines of business, resulting in quicker development cycles.
  • Enhanced code reliability - reducing the manual code entry for repetitive tasks decreases the likelihood of errors, leading to more stable and reliable Jutro applications.

For more information on using the Digital SDK with InsuranceSuite Cloud APIs, see the Digital SDK documentation.

Alternate Digital SDK generation option with Jutro CLI

Jutro users can follow the Digital SDK generation instructions from the Digital SDK documentation and use the Digital SDK CLI just like any other Insurance Suite user. However, the Jutro CLI also provides a command to generate a Digital SDK to be used in Jutro applications.

The only difference between generating an SDK with the Digital SDK CLI and the Jutro CLI is that the Jutro version includes an initialization function that automatically retrieves the SDK initialization values from your Jutro environment variables. The final result of the initialization function will be the same, regardless of which approach is used.

For instructions to generate an SDK using the Jutro CLI that includes this initialization function see Digital SDK Generation and Setup for Jutro

For instructions on using this generated initialization function see Configure the Digital SDK for Jutro