Skip to content

Commit af99d11

Browse files
author
andrewwilsonnew
committed
fixing api override
1 parent b059a74 commit af99d11

6 files changed

Lines changed: 40 additions & 40 deletions

File tree

samples/server/petstore/kotlin-misk-config/src/main/kotlin/org/openapitools/server/api/api/PetApiAction.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ class PetApiAction @Inject constructor(
4242
@RequestContentType(MediaTypes.APPLICATION_JSON, MediaTypes.APPLICATION_XML)
4343
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
4444
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
45-
override fun addPet(
45+
fun addPet(
4646
@Valid @RequestBody pet: Pet): Pet {
4747
TODO()
4848
}
4949

5050
@Delete("/pet/{petId}")
5151
@Description("Deletes a pet")
5252
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
53-
override fun deletePet(
53+
fun deletePet(
5454
@PathParam("petId") petId: kotlin.Long,
5555
@RequestHeader(value = "api_key") apiKey: kotlin.String?) {
5656
TODO()
@@ -60,7 +60,7 @@ class PetApiAction @Inject constructor(
6060
@Description("Finds Pets by status")
6161
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
6262
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
63-
override fun findPetsByStatus(
63+
fun findPetsByStatus(
6464
@QueryParam(value = "status") status: kotlin.Array<kotlin.String>): kotlin.Array<Pet> {
6565
TODO()
6666
}
@@ -69,7 +69,7 @@ class PetApiAction @Inject constructor(
6969
@Description("Finds Pets by tags")
7070
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
7171
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
72-
override fun findPetsByTags(
72+
fun findPetsByTags(
7373
@QueryParam(value = "tags") tags: kotlin.Array<kotlin.String>): kotlin.Array<Pet> {
7474
TODO()
7575
}
@@ -78,7 +78,7 @@ class PetApiAction @Inject constructor(
7878
@Description("Find pet by ID")
7979
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
8080
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
81-
override fun getPetById(
81+
fun getPetById(
8282
@PathParam("petId") petId: kotlin.Long): Pet {
8383
TODO()
8484
}
@@ -88,7 +88,7 @@ class PetApiAction @Inject constructor(
8888
@RequestContentType(MediaTypes.APPLICATION_JSON, MediaTypes.APPLICATION_XML)
8989
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
9090
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
91-
override fun updatePet(
91+
fun updatePet(
9292
@Valid @RequestBody pet: Pet): Pet {
9393
TODO()
9494
}
@@ -97,7 +97,7 @@ class PetApiAction @Inject constructor(
9797
@Description("Updates a pet in the store with form data")
9898
@RequestContentType(MediaTypes.APPLICATION_FORM_URLENCODED)
9999
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
100-
override fun updatePetWithForm(
100+
fun updatePetWithForm(
101101
@PathParam("petId") petId: kotlin.Long,
102102
@QueryParam(value = "name") name: kotlin.String? ,
103103
@QueryParam(value = "status") status: kotlin.String? ) {
@@ -109,7 +109,7 @@ class PetApiAction @Inject constructor(
109109
@RequestContentType(MediaTypes.FORM_DATA)
110110
@ResponseContentType(MediaTypes.APPLICATION_JSON)
111111
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
112-
override fun uploadFile(
112+
fun uploadFile(
113113
@PathParam("petId") petId: kotlin.Long,
114114
@QueryParam(value = "additionalMetadata") additionalMetadata: kotlin.String? ,
115115
@Valid file: HttpCall): ModelApiResponse {

samples/server/petstore/kotlin-misk-config/src/main/kotlin/org/openapitools/server/api/api/StoreApiAction.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class StoreApiAction @Inject constructor(
3939
@Delete("/store/order/{orderId}")
4040
@Description("Delete purchase order by ID")
4141
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
42-
override fun deleteOrder(
42+
fun deleteOrder(
4343
@PathParam("orderId") orderId: kotlin.String) {
4444
TODO()
4545
}
@@ -48,15 +48,15 @@ class StoreApiAction @Inject constructor(
4848
@Description("Returns pet inventories by status")
4949
@ResponseContentType(MediaTypes.APPLICATION_JSON)
5050
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
51-
override fun getInventory(): kotlin.collections.Map<kotlin.String, kotlin.Int> {
51+
fun getInventory(): kotlin.collections.Map<kotlin.String, kotlin.Int> {
5252
TODO()
5353
}
5454

5555
@Get("/store/order/{orderId}")
5656
@Description("Find purchase order by ID")
5757
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
5858
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
59-
override fun getOrderById(
59+
fun getOrderById(
6060
@Min(1L) @Max(5L) @PathParam("orderId") orderId: kotlin.Long): Order {
6161
TODO()
6262
}
@@ -66,7 +66,7 @@ class StoreApiAction @Inject constructor(
6666
@RequestContentType(MediaTypes.APPLICATION_JSON)
6767
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
6868
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
69-
override fun placeOrder(
69+
fun placeOrder(
7070
@Valid @RequestBody order: Order): Order {
7171
TODO()
7272
}

samples/server/petstore/kotlin-misk-config/src/main/kotlin/org/openapitools/server/api/api/UserApiAction.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class UserApiAction @Inject constructor(
4040
@Description("Create user")
4141
@RequestContentType(MediaTypes.APPLICATION_JSON)
4242
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
43-
override fun createUser(
43+
fun createUser(
4444
@Valid @RequestBody user: User) {
4545
TODO()
4646
}
@@ -49,7 +49,7 @@ class UserApiAction @Inject constructor(
4949
@Description("Creates list of users with given input array")
5050
@RequestContentType(MediaTypes.APPLICATION_JSON)
5151
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
52-
override fun createUsersWithArrayInput(
52+
fun createUsersWithArrayInput(
5353
@Valid @RequestBody user: kotlin.Array<User>) {
5454
TODO()
5555
}
@@ -58,15 +58,15 @@ class UserApiAction @Inject constructor(
5858
@Description("Creates list of users with given input array")
5959
@RequestContentType(MediaTypes.APPLICATION_JSON)
6060
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
61-
override fun createUsersWithListInput(
61+
fun createUsersWithListInput(
6262
@Valid @RequestBody user: kotlin.Array<User>) {
6363
TODO()
6464
}
6565

6666
@Delete("/user/{username}")
6767
@Description("Delete user")
6868
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
69-
override fun deleteUser(
69+
fun deleteUser(
7070
@PathParam("username") username: kotlin.String) {
7171
TODO()
7272
}
@@ -75,7 +75,7 @@ class UserApiAction @Inject constructor(
7575
@Description("Get user by user name")
7676
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
7777
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
78-
override fun getUserByName(
78+
fun getUserByName(
7979
@PathParam("username") username: kotlin.String): User {
8080
TODO()
8181
}
@@ -84,7 +84,7 @@ class UserApiAction @Inject constructor(
8484
@Description("Logs user into the system")
8585
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
8686
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
87-
override fun loginUser(
87+
fun loginUser(
8888
@QueryParam(value = "username") username: kotlin.String,
8989
@QueryParam(value = "password") password: kotlin.String): kotlin.String {
9090
TODO()
@@ -93,15 +93,15 @@ class UserApiAction @Inject constructor(
9393
@Get("/user/logout")
9494
@Description("Logs out current logged in user session")
9595
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
96-
override fun logoutUser() {
96+
fun logoutUser() {
9797
TODO()
9898
}
9999

100100
@Put("/user/{username}")
101101
@Description("Updated user")
102102
@RequestContentType(MediaTypes.APPLICATION_JSON)
103103
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
104-
override fun updateUser(
104+
fun updateUser(
105105
@PathParam("username") username: kotlin.String,
106106
@Valid @RequestBody user: User) {
107107
TODO()

samples/server/petstore/kotlin-misk/src/main/kotlin/org/openapitools/server/api/api/PetApiAction.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ class PetApiAction @Inject constructor(
4242
@RequestContentType(MediaTypes.APPLICATION_JSON, MediaTypes.APPLICATION_XML)
4343
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
4444
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
45-
override fun addPet(
45+
fun addPet(
4646
@Valid @RequestBody pet: Pet): Pet {
4747
TODO()
4848
}
4949

5050
@Delete("/pet/{petId}")
5151
@Description("Deletes a pet")
5252
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
53-
override fun deletePet(
53+
fun deletePet(
5454
@PathParam("petId") petId: kotlin.Long,
5555
@RequestHeader(value = "api_key") apiKey: kotlin.String?) {
5656
TODO()
@@ -60,7 +60,7 @@ class PetApiAction @Inject constructor(
6060
@Description("Finds Pets by status")
6161
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
6262
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
63-
override fun findPetsByStatus(
63+
fun findPetsByStatus(
6464
@QueryParam(value = "status") status: kotlin.Array<kotlin.String>): kotlin.Array<Pet> {
6565
TODO()
6666
}
@@ -69,7 +69,7 @@ class PetApiAction @Inject constructor(
6969
@Description("Finds Pets by tags")
7070
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
7171
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
72-
override fun findPetsByTags(
72+
fun findPetsByTags(
7373
@QueryParam(value = "tags") tags: kotlin.Array<kotlin.String>): kotlin.Array<Pet> {
7474
TODO()
7575
}
@@ -78,7 +78,7 @@ class PetApiAction @Inject constructor(
7878
@Description("Find pet by ID")
7979
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
8080
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
81-
override fun getPetById(
81+
fun getPetById(
8282
@PathParam("petId") petId: kotlin.Long): Pet {
8383
TODO()
8484
}
@@ -88,7 +88,7 @@ class PetApiAction @Inject constructor(
8888
@RequestContentType(MediaTypes.APPLICATION_JSON, MediaTypes.APPLICATION_XML)
8989
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
9090
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
91-
override fun updatePet(
91+
fun updatePet(
9292
@Valid @RequestBody pet: Pet): Pet {
9393
TODO()
9494
}
@@ -97,7 +97,7 @@ class PetApiAction @Inject constructor(
9797
@Description("Updates a pet in the store with form data")
9898
@RequestContentType(MediaTypes.APPLICATION_FORM_URLENCODED)
9999
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
100-
override fun updatePetWithForm(
100+
fun updatePetWithForm(
101101
@PathParam("petId") petId: kotlin.Long,
102102
@QueryParam(value = "name") name: kotlin.String? ,
103103
@QueryParam(value = "status") status: kotlin.String? ) {
@@ -109,7 +109,7 @@ class PetApiAction @Inject constructor(
109109
@RequestContentType(MediaTypes.FORM_DATA)
110110
@ResponseContentType(MediaTypes.APPLICATION_JSON)
111111
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
112-
override fun uploadFile(
112+
fun uploadFile(
113113
@PathParam("petId") petId: kotlin.Long,
114114
@QueryParam(value = "additionalMetadata") additionalMetadata: kotlin.String? ,
115115
@Valid file: HttpCall): ModelApiResponse {

samples/server/petstore/kotlin-misk/src/main/kotlin/org/openapitools/server/api/api/StoreApiAction.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class StoreApiAction @Inject constructor(
3939
@Delete("/store/order/{orderId}")
4040
@Description("Delete purchase order by ID")
4141
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
42-
override fun deleteOrder(
42+
fun deleteOrder(
4343
@PathParam("orderId") orderId: kotlin.String) {
4444
TODO()
4545
}
@@ -48,15 +48,15 @@ class StoreApiAction @Inject constructor(
4848
@Description("Returns pet inventories by status")
4949
@ResponseContentType(MediaTypes.APPLICATION_JSON)
5050
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
51-
override fun getInventory(): kotlin.collections.Map<kotlin.String, kotlin.Int> {
51+
fun getInventory(): kotlin.collections.Map<kotlin.String, kotlin.Int> {
5252
TODO()
5353
}
5454

5555
@Get("/store/order/{orderId}")
5656
@Description("Find purchase order by ID")
5757
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
5858
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
59-
override fun getOrderById(
59+
fun getOrderById(
6060
@Min(1L) @Max(5L) @PathParam("orderId") orderId: kotlin.Long): Order {
6161
TODO()
6262
}
@@ -66,7 +66,7 @@ class StoreApiAction @Inject constructor(
6666
@RequestContentType(MediaTypes.APPLICATION_JSON)
6767
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
6868
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
69-
override fun placeOrder(
69+
fun placeOrder(
7070
@Valid @RequestBody order: Order): Order {
7171
TODO()
7272
}

samples/server/petstore/kotlin-misk/src/main/kotlin/org/openapitools/server/api/api/UserApiAction.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class UserApiAction @Inject constructor(
4040
@Description("Create user")
4141
@RequestContentType(MediaTypes.APPLICATION_JSON)
4242
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
43-
override fun createUser(
43+
fun createUser(
4444
@Valid @RequestBody user: User) {
4545
TODO()
4646
}
@@ -49,7 +49,7 @@ class UserApiAction @Inject constructor(
4949
@Description("Creates list of users with given input array")
5050
@RequestContentType(MediaTypes.APPLICATION_JSON)
5151
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
52-
override fun createUsersWithArrayInput(
52+
fun createUsersWithArrayInput(
5353
@Valid @RequestBody user: kotlin.Array<User>) {
5454
TODO()
5555
}
@@ -58,15 +58,15 @@ class UserApiAction @Inject constructor(
5858
@Description("Creates list of users with given input array")
5959
@RequestContentType(MediaTypes.APPLICATION_JSON)
6060
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
61-
override fun createUsersWithListInput(
61+
fun createUsersWithListInput(
6262
@Valid @RequestBody user: kotlin.Array<User>) {
6363
TODO()
6464
}
6565

6666
@Delete("/user/{username}")
6767
@Description("Delete user")
6868
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
69-
override fun deleteUser(
69+
fun deleteUser(
7070
@PathParam("username") username: kotlin.String) {
7171
TODO()
7272
}
@@ -75,7 +75,7 @@ class UserApiAction @Inject constructor(
7575
@Description("Get user by user name")
7676
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
7777
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
78-
override fun getUserByName(
78+
fun getUserByName(
7979
@PathParam("username") username: kotlin.String): User {
8080
TODO()
8181
}
@@ -84,7 +84,7 @@ class UserApiAction @Inject constructor(
8484
@Description("Logs user into the system")
8585
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
8686
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
87-
override fun loginUser(
87+
fun loginUser(
8888
@QueryParam(value = "username") username: kotlin.String,
8989
@QueryParam(value = "password") password: kotlin.String): kotlin.String {
9090
TODO()
@@ -93,15 +93,15 @@ class UserApiAction @Inject constructor(
9393
@Get("/user/logout")
9494
@Description("Logs out current logged in user session")
9595
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
96-
override fun logoutUser() {
96+
fun logoutUser() {
9797
TODO()
9898
}
9999

100100
@Put("/user/{username}")
101101
@Description("Updated user")
102102
@RequestContentType(MediaTypes.APPLICATION_JSON)
103103
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
104-
override fun updateUser(
104+
fun updateUser(
105105
@PathParam("username") username: kotlin.String,
106106
@Valid @RequestBody user: User) {
107107
TODO()

0 commit comments

Comments
 (0)