forked from loafle/openapi-generator-original
Update samples (#11119)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
README.md
|
||||
pom.xml
|
||||
src/main/kotlin/org/openapitools/server/api/model/ApiResponse.kt
|
||||
src/main/kotlin/org/openapitools/server/api/model/Category.kt
|
||||
src/main/kotlin/org/openapitools/server/api/model/ModelApiResponse.kt
|
||||
src/main/kotlin/org/openapitools/server/api/model/Order.kt
|
||||
src/main/kotlin/org/openapitools/server/api/model/Pet.kt
|
||||
src/main/kotlin/org/openapitools/server/api/model/Tag.kt
|
||||
|
||||
@@ -51,8 +51,8 @@ This runs all tests and packages the library.
|
||||
<a name="documentation-for-models"></a>
|
||||
## Documentation for Models
|
||||
|
||||
- [org.openapitools.server.api.model.ApiResponse](docs/ApiResponse.md)
|
||||
- [org.openapitools.server.api.model.Category](docs/Category.md)
|
||||
- [org.openapitools.server.api.model.ModelApiResponse](docs/ModelApiResponse.md)
|
||||
- [org.openapitools.server.api.model.Order](docs/Order.md)
|
||||
- [org.openapitools.server.api.model.Pet](docs/Pet.md)
|
||||
- [org.openapitools.server.api.model.Tag](docs/Tag.md)
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* OpenAPI Petstore
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
package org.openapitools.server.api.model
|
||||
|
||||
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
import com.fasterxml.jackson.annotation.JsonInclude
|
||||
/**
|
||||
* Describes the result of uploading an image resource
|
||||
* @param code
|
||||
* @param type
|
||||
* @param message
|
||||
*/
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class ModelApiResponse (
|
||||
var code: kotlin.Int? = null,
|
||||
var type: kotlin.String? = null,
|
||||
var message: kotlin.String? = null
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package org.openapitools.server.api.verticle
|
||||
|
||||
import org.openapitools.server.api.model.ApiResponse
|
||||
import org.openapitools.server.api.model.ModelApiResponse
|
||||
import org.openapitools.server.api.model.Pet
|
||||
import io.vertx.core.Vertx
|
||||
import io.vertx.core.json.JsonObject
|
||||
@@ -41,7 +41,7 @@ interface PetApi {
|
||||
suspend fun updatePetWithForm(petId:kotlin.Long?,name:kotlin.String?,status:kotlin.String?,context:OperationRequest):Response<Void>
|
||||
/* uploadFile
|
||||
* uploads an image */
|
||||
suspend fun uploadFile(petId:kotlin.Long?,additionalMetadata:kotlin.String?,file:kotlin.collections.List<java.io.File>?,context:OperationRequest):Response<ApiResponse>
|
||||
suspend fun uploadFile(petId:kotlin.Long?,additionalMetadata:kotlin.String?,file:kotlin.collections.List<java.io.File>?,context:OperationRequest):Response<ModelApiResponse>
|
||||
companion object {
|
||||
const val address = "PetApi-service"
|
||||
suspend fun createRouterFactory(vertx: Vertx,path:String): io.vertx.ext.web.api.contract.openapi3.OpenAPI3RouterFactory {
|
||||
|
||||
@@ -16,7 +16,7 @@ import io.vertx.core.json.Json
|
||||
import io.vertx.core.json.JsonArray
|
||||
import com.google.gson.reflect.TypeToken
|
||||
import com.google.gson.Gson
|
||||
import org.openapitools.server.api.model.ApiResponse
|
||||
import org.openapitools.server.api.model.ModelApiResponse
|
||||
import org.openapitools.server.api.model.Pet
|
||||
|
||||
class PetApiVertxProxyHandler(private val vertx: Vertx, private val service: PetApi, topLevel: Boolean, private val timeoutSeconds: Long) : ProxyHandler() {
|
||||
|
||||
Reference in New Issue
Block a user