11package org.openapitools.server.api.api
22
3- import org.openapitools.server.api.model.ModelApiResponse
4- import org.openapitools.server.api.model.Pet
5-
3+ import jakarta.inject.Inject
4+ import jakarta.inject.Singleton
65import jakarta.validation.Valid
76import jakarta.validation.constraints.DecimalMax
87import jakarta.validation.constraints.DecimalMin
@@ -12,10 +11,6 @@ import jakarta.validation.constraints.Min
1211import jakarta.validation.constraints.NotNull
1312import jakarta.validation.constraints.Pattern
1413import jakarta.validation.constraints.Size
15-
16- import jakarta.inject.Inject
17- import jakarta.inject.Singleton
18-
1914import misk.web.Delete
2015import misk.web.Description
2116import misk.web.Get
@@ -33,75 +28,80 @@ import misk.web.actions.WebAction
3328import misk.web.interceptors.LogRequestResponse
3429import misk.web.mediatype.MediaTypes
3530import okhttp3.Headers
31+ import org.openapitools.server.api.model.ModelApiResponse
32+ import org.openapitools.server.api.model.Pet
3633
37- @Singleton
38- class PetApiController @Inject constructor(
39- private val petApi : PetApi
40- ) : WebAction implements PetApi {
34+ /* *
35+ * Generated file, please change PetApiController.
36+ */
37+ @Singleton
38+ class PetApiController @Inject constructor(
39+ private val petApi : PetApi
40+ ) : WebAction, PetApi {
4141
42- @Post(" /pet" )
43- @Description(" Add a new pet to the store" )
44- @RequestContentType(MediaTypes .APPLICATION_JSON , MediaTypes .APPLICATION_XML )
45- @ResponseContentType(MediaTypes .APPLICATION_XML , MediaTypes .APPLICATION_JSON )
46- @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
47- override fun addPet (@Valid @RequestBody pet : Pet ): Pet {
48- TODO ()
49- }
42+ @Post(" /pet" )
43+ @Description(" Add a new pet to the store" )
44+ @RequestContentType(MediaTypes .APPLICATION_JSON , MediaTypes .APPLICATION_XML )
45+ @ResponseContentType(MediaTypes .APPLICATION_XML , MediaTypes .APPLICATION_JSON )
46+ @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
47+ override fun addPet (@Valid @RequestBody pet : Pet ): Pet {
48+ TODO ()
49+ }
5050
51- @Delete(" /pet/{petId}" )
52- @Description(" Deletes a pet" )
53- @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
54- override fun deletePet (@PathParam(" petId" ) petId : kotlin.Long , apiKey : Headers ) {
55- TODO ()
56- }
51+ @Delete(" /pet/{petId}" )
52+ @Description(" Deletes a pet" )
53+ @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
54+ override fun deletePet (@PathParam(" petId" ) petId : kotlin.Long , apiKey : Headers ) {
55+ TODO ()
56+ }
5757
58- @Get(" /pet/findByStatus" )
59- @Description(" Finds Pets by status" )
60- @ResponseContentType(MediaTypes .APPLICATION_XML , MediaTypes .APPLICATION_JSON )
61- @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
62- override fun findPetsByStatus ( @QueryParam(value = " status" ) status : kotlin.Array <kotlin.String >): kotlin.Array <Pet > {
63- TODO ()
64- }
58+ @Get(" /pet/findByStatus" )
59+ @Description(" Finds Pets by status" )
60+ @ResponseContentType(MediaTypes .APPLICATION_XML , MediaTypes .APPLICATION_JSON )
61+ @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
62+ override fun findPetsByStatus ( @QueryParam(value = " status" ) status : kotlin.Array <kotlin.String >): kotlin.Array <Pet > {
63+ TODO ()
64+ }
6565
66- @Get(" /pet/findByTags" )
67- @Description(" Finds Pets by tags" )
68- @ResponseContentType(MediaTypes .APPLICATION_XML , MediaTypes .APPLICATION_JSON )
69- @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
70- override fun findPetsByTags ( @QueryParam(value = " tags" ) tags : kotlin.Array <kotlin.String >): kotlin.Array <Pet > {
71- TODO ()
72- }
66+ @Get(" /pet/findByTags" )
67+ @Description(" Finds Pets by tags" )
68+ @ResponseContentType(MediaTypes .APPLICATION_XML , MediaTypes .APPLICATION_JSON )
69+ @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
70+ override fun findPetsByTags ( @QueryParam(value = " tags" ) tags : kotlin.Array <kotlin.String >): kotlin.Array <Pet > {
71+ TODO ()
72+ }
7373
74- @Get(" /pet/{petId}" )
75- @Description(" Find pet by ID" )
76- @ResponseContentType(MediaTypes .APPLICATION_XML , MediaTypes .APPLICATION_JSON )
77- @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
78- override fun getPetById (@PathParam(" petId" ) petId : kotlin.Long ): Pet {
79- TODO ()
80- }
74+ @Get(" /pet/{petId}" )
75+ @Description(" Find pet by ID" )
76+ @ResponseContentType(MediaTypes .APPLICATION_XML , MediaTypes .APPLICATION_JSON )
77+ @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
78+ override fun getPetById (@PathParam(" petId" ) petId : kotlin.Long ): Pet {
79+ TODO ()
80+ }
8181
82- @Put(" /pet" )
83- @Description(" Update an existing pet" )
84- @RequestContentType(MediaTypes .APPLICATION_JSON , MediaTypes .APPLICATION_XML )
85- @ResponseContentType(MediaTypes .APPLICATION_XML , MediaTypes .APPLICATION_JSON )
86- @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
87- override fun updatePet (@Valid @RequestBody pet : Pet ): Pet {
88- TODO ()
89- }
82+ @Put(" /pet" )
83+ @Description(" Update an existing pet" )
84+ @RequestContentType(MediaTypes .APPLICATION_JSON , MediaTypes .APPLICATION_XML )
85+ @ResponseContentType(MediaTypes .APPLICATION_XML , MediaTypes .APPLICATION_JSON )
86+ @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
87+ override fun updatePet (@Valid @RequestBody pet : Pet ): Pet {
88+ TODO ()
89+ }
9090
91- @Post(" /pet/{petId}" )
92- @Description(" Updates a pet in the store with form data" )
93- @RequestContentType(MediaTypes .APPLICATION_FORM_URLENCODED )
94- @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
95- override fun updatePetWithForm (@PathParam(" petId" ) petId : kotlin.Long , @QueryParam(value = " name" ) name : kotlin.String? , @QueryParam(value = " status" ) status : kotlin.String? ) {
96- TODO ()
97- }
91+ @Post(" /pet/{petId}" )
92+ @Description(" Updates a pet in the store with form data" )
93+ @RequestContentType(MediaTypes .APPLICATION_FORM_URLENCODED )
94+ @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
95+ override fun updatePetWithForm (@PathParam(" petId" ) petId : kotlin.Long , @QueryParam(value = " name" ) name : kotlin.String? , @QueryParam(value = " status" ) status : kotlin.String? ) {
96+ TODO ()
97+ }
9898
99- @Post(" /pet/{petId}/uploadImage" )
100- @Description(" uploads an image" )
101- @RequestContentType(MediaTypes .APPLICATION_OCTETSTREAM /* unknown -> multipart/form-data */ )
102- @ResponseContentType(MediaTypes .APPLICATION_JSON )
103- @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
104- override fun uploadFile (@PathParam(" petId" ) petId : kotlin.Long , @QueryParam(value = " additionalMetadata" ) additionalMetadata : kotlin.String? , @Valid file : HttpCall ): ModelApiResponse {
105- TODO ()
106- }
99+ @Post(" /pet/{petId}/uploadImage" )
100+ @Description(" uploads an image" )
101+ @RequestContentType(MediaTypes .APPLICATION_OCTETSTREAM /* unknown -> multipart/form-data */ )
102+ @ResponseContentType(MediaTypes .APPLICATION_JSON )
103+ @LogRequestResponse(bodySampling = 1.0 , errorBodySampling = 1.0 )
104+ override fun uploadFile (@PathParam(" petId" ) petId : kotlin.Long , @QueryParam(value = " additionalMetadata" ) additionalMetadata : kotlin.String? , @Valid file : HttpCall ): ModelApiResponse {
105+ TODO ()
107106 }
107+ }
0 commit comments