Interface CodegenService
- All Known Implementing Classes:
SuperUserOpenApiCodegenService
public interface CodegenService
Interface for code generation services
-
Method Summary
Modifier and TypeMethodDescriptiongenerateApplication
(File spec, String applicationNameOrId, String language, String packageName, String options) Generates the code for a specific application and returns a zip file containing the generated codegenerateCore
(File spec, String language, String packageName, String options) Generates the Elements Core APIs and returns a zip file containing the generated code
-
Method Details
-
generateCore
Generates the Elements Core APIs and returns a zip file containing the generated code- Parameters:
spec
- The file containing the generated OpenAPI speclanguage
- The language to generateoptions
- Any options to pass to the generator- Returns:
- The file that will contain the compressed contents after code generation
-
generateApplication
File generateApplication(File spec, String applicationNameOrId, String language, String packageName, String options) Generates the code for a specific application and returns a zip file containing the generated code- Parameters:
spec
- The file containing the generated OpenAPI specapplicationNameOrId
- The name or id of the application to generate code forlanguage
- The language to generateoptions
- Any options to pass to the generator- Returns:
- The file that will contain the compressed contents after code generation
-