mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-11-23 12:03:50 +00:00
* Generate wrappers for oneOf with discriminator when using kotlinx.serialization * Add spec with oneOf using discriminator * Add config to generate samples * Generate samples * Update samples * Change naming of wrapper classes * Fix empty model test * Update GH workflow with new samples
951 B
951 B
BirdApi
All URIs are relative to http://example.org
| Method | HTTP request | Description |
|---|---|---|
| getBird | GET v1/bird/{id} |
Example
// Import classes:
//import org.openapitools.client.*
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiClient = ApiClient()
val webService = apiClient.createWebservice(BirdApi::class.java)
val id : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
val result : Animal = webService.getBird(id)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | java.util.UUID |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json