Package io.micronaut.gradle.openapi
Interface OpenApiExtension
- All Known Implementing Classes:
DefaultOpenApiExtension
public interface OpenApiExtension
Configures the OpenAPI code generator.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
client
(File file, org.gradle.api.Action<? super OpenApiClientSpec> spec) Configures generation of a client, given a definition file.void
client
(String name, File definition, org.gradle.api.Action<? super OpenApiClientSpec> spec) Configures generation of a server, given a definition file.void
client
(String name, org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> definition, org.gradle.api.Action<? super OpenApiClientSpec> spec) Configures generation of a server, given a definition file.org.gradle.api.provider.Property<String>
The version of the Micronaut OpenAPI generator.void
server
(File file, org.gradle.api.Action<? super OpenApiServerSpec> spec) Configures generation of a server, given a definition file.void
server
(String name, File definition, org.gradle.api.Action<? super OpenApiServerSpec> spec) Configures generation of a server, given a definition file.void
server
(String name, org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> definition, org.gradle.api.Action<? super OpenApiServerSpec> spec) Configures generation of a server, given a definition file.
-
Method Details
-
getVersion
org.gradle.api.provider.Property<String> getVersion()The version of the Micronaut OpenAPI generator.- Returns:
- the version
-
server
Configures generation of a server, given a definition file.- Parameters:
file
- the OpenAPI definition filespec
- configuration for the server generation
-
client
Configures generation of a client, given a definition file.- Parameters:
file
- the OpenAPI definition filespec
- configuration for the client generation
-
server
void server(String name, org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> definition, org.gradle.api.Action<? super OpenApiServerSpec> spec) Configures generation of a server, given a definition file.- Parameters:
name
- an identifier used to uniquely refer to the generator, used to derive task namesdefinition
- the OpenAPI definition file providerspec
- configuration for the server generation
-
client
void client(String name, org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> definition, org.gradle.api.Action<? super OpenApiClientSpec> spec) Configures generation of a server, given a definition file.- Parameters:
name
- an identifier used to uniquely refer to the generator, used to derive task namesdefinition
- the OpenAPI definition file providerspec
- configuration for the server generation
-
server
Configures generation of a server, given a definition file.- Parameters:
name
- an identifier used to uniquely refer to the generator, used to derive task namesdefinition
- the OpenAPI definition file providerspec
- configuration for the server generation
-
client
Configures generation of a server, given a definition file.- Parameters:
name
- an identifier used to uniquely refer to the generator, used to derive task namesdefinition
- the OpenAPI definition file providerspec
- configuration for the server generation
-