Interface CodegenService

All Known Implementing Classes:
SuperUserOpenApiCodegenService

public interface CodegenService
Interface for code generation services
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    generateCore(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

      File generateCore(File spec, String language, String packageName, String options)
      Generates the Elements Core APIs and returns a zip file containing the generated code
      Parameters:
      spec - The file containing the generated OpenAPI spec
      language - The language to generate
      options - 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 spec
      applicationNameOrId - The name or id of the application to generate code for
      language - The language to generate
      options - Any options to pass to the generator
      Returns:
      The file that will contain the compressed contents after code generation