Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 837 Bytes

Customization.md

File metadata and controls

13 lines (9 loc) · 837 Bytes

Customization

Customizing templates

The code and documentation are generated from jMustache templates available in resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client :

Generated file Template file Description
Client.php Client.mustache The main client class.
Endpoint/*.php api.mustache One generated class for each path/operation in the OpenAPI spec file.
README.md README.mustache A base skeleton for documentation. This templates include several others (readme_faq.mustache, readme_usage.mustache...) allowing to override only parts of it.

To override a template, copy it into the resources/api/templates directory of your project and apply modification on the copied files.