Andriy Dmytruk a0dd025c82
Add Micronaut server generator (#10270)
* Add micronaut server implementation

* Add micronaut server tests and imporovements

* Generate samples, docs and verify that tests pass

* Update micronaut docs and samples after merging with master

* Update micronaut dev server samples

* Add micronuat server docs

* Update micronaut version

* Minor changes to micronaut server and client

* Fix documentation generation in samples

Co-authored-by: Andriy Dmytruk <andriy.dmytruk@andriy.dmytruk.ca.oracle.com>
2022-01-26 13:51:19 +08:00

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

ModelClient

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json