forked from loafle/openapi-generator-original
* Create initial version of openapi micronaut generator * Update validation, authorization, query parameters and time format * Move micronaut to its own generator * Add micronaut documentation * Refactor and add tests to JavaMicronautClientGenerator * Refactor model mustache for micronaut client * Refactor model enum and pojo mustache files for micronaut client * Move micronaut client generation to micronaut 3.0.0-M5 version * Generate samples for micronaut client * Add hidden files of generated samples for micronaut client * Add and configure micronaut tests as maven profile * Add option to choose between junit and spock for micronaut client generator * Add tests for micronaut 'build' and 'test' options; regenerate micronaut samples
1.7 KiB
1.7 KiB
AnotherFakeApi
All URIs are relative to http://petstore.swagger.io:80/v2
Method | HTTP request | Description |
---|---|---|
call123testSpecialTags | PATCH /another-fake/dummy | To test special tags |
Creating AnotherFakeApi
To initiate an instance of AnotherFakeApi
, you can use micronaut's ApplicationContext
:
/* imports
import io.micronaut.runtime.Micronaut;
import io.micronaut.context.ApplicationContext;
import org.openapitools.api.AnotherFakeApi;
*/
ApplicationContext context = Micronaut.run(/* ... */);
PetApi apiInstance = context.getBean(AnotherFakeApi.class);
Or the @Inject
annotation:
@Singleton
class MyClass {
@Inject
AnotherFakeApi anotherFakeApi;
/* ... use the injected variable */
}
Note that the class needs to be annotated with one of Micronaut's scope annotations like Singleton
in order to be processed.
More information can be found inside Inversion of Control guide section.
call123testSpecialTags
Mono<ModelClient> AnotherFakeApi.call123testSpecialTags(_body)
To test special tags
To test special tags and operation ID starting with number
Parameters
Name | Type | Description | Notes |
---|---|---|---|
_body | ModelClient | client model |
Return type
HTTP request headers
- Content-Type:
application/json
- Accept:
application/json