2022-03-25 00:42:07 +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