Package dk.mada.jaxrs.generator.api
Interface GeneratorService
- All Known Implementing Classes:
Generator
public interface GeneratorService
Generator service.
Allows decoupling the generator service from the two ways of invoking it (CLI and Gradle).
-
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateClient(ClientContext context, Path openapiDocument, Properties options, Path destinationDir) Generate client code.
-
Method Details
-
generateClient
void generateClient(ClientContext context, Path openapiDocument, Properties options, Path destinationDir) Generate client code.- Parameters:
context- the context for the generatoropenapiDocument- the OpenAPI documentoptions- the generator optionsdestinationDir- the destination directory- Throws:
GeneratorBadInputException- if the generator failed due to bad inputGeneratorException- if the generator failed for any other reason
-