Default API templates
In the base configuration, Guidewire provides an example of a default API template called
dev_template-1.0, located in the following location in Studio:
The default template includes the following pieces.
- gw.pl.framework.basic_auth-1.0
- Adds the Swagger security specification that supports HTTP Basic Authentication, necessary so that Swagger UI and other tools can provide an appropriate authentication pop-up.
- gw.pl.framework.standard_definitions-1.0
- Adds standard definitions for all custom headers supported by the REST framework and all standard error codes that the framework returns.
- gw.pl.framework.api_docs-1.0
- Adds a /swagger.json endpoint to every API for retrieving the API's Swagger schema at runtime.
Guidewire deliberately implements each of these pieces as its own schema. This permits you to choose to include any or all of these pieces in creating your own templates.
