Exporting the API schema

Guidewire provides the following gwb build tool to externalize and generate the Swagger schemas:
  • gwb genExternalSchemas
This command writes the REST API externalized JSON schema files to the following location in the Studio Project window:
  • configuration > build > external-schemas
After running this command, you see the schema file (swagger.json) and its associated XSD file (schema.xsd), for example:
  • gw.pl.framework.api.docs-1.0.swagger.json
  • gw.pl.framework.api.docs-1.0.swagger.xsd