Skip to content

Commit 1bcff51

Browse files
author
andrewwilsonnew
committed
tweaks
1 parent d56f808 commit 1bcff51

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

samples/server/petstore/kotlin-misk/.openapi-generator/FILES

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,3 @@ src/main/kotlin/org/openapitools/server/api/model/Order.kt
2020
src/main/kotlin/org/openapitools/server/api/model/Pet.kt
2121
src/main/kotlin/org/openapitools/server/api/model/Tag.kt
2222
src/main/kotlin/org/openapitools/server/api/model/User.kt
23-
src/test/kotlin/org/openapitools/server/api/api/PetApiTest.kt
24-
src/test/kotlin/org/openapitools/server/api/api/StoreApiTest.kt
25-
src/test/kotlin/org/openapitools/server/api/api/UserApiTest.kt

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import misk.web.Delete
2020
import misk.web.Description
2121
import misk.web.Get
2222
import misk.web.HttpCall
23+
import misk.web.Patch
2324
import misk.web.PathParam
2425
import misk.web.Post
2526
import misk.web.Put
@@ -50,7 +51,7 @@ import okhttp3.Headers
5051
@Delete("/pet/{petId}")
5152
@Description("Deletes a pet")
5253
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
53-
fun deletePet( @PathParam("petId") petId: kotlin.Long,apiKey: Headers) {
54+
fun deletePet(@PathParam("petId") petId: kotlin.Long,apiKey: Headers) {
5455
TODO()
5556
}
5657

@@ -74,7 +75,7 @@ import okhttp3.Headers
7475
@Description("Find pet by ID")
7576
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
7677
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
77-
fun getPetById( @PathParam("petId") petId: kotlin.Long): Pet {
78+
fun getPetById(@PathParam("petId") petId: kotlin.Long): Pet {
7879
TODO()
7980
}
8081

@@ -91,7 +92,7 @@ import okhttp3.Headers
9192
@Description("Updates a pet in the store with form data")
9293
@RequestContentType(MediaTypes.APPLICATION_FORM_URLENCODED)
9394
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
94-
fun updatePetWithForm( @PathParam("petId") petId: kotlin.Long,@Valid@QueryParam("name") name: kotlin.String?,@Valid@QueryParam("status") status: kotlin.String?) {
95+
fun updatePetWithForm(@PathParam("petId") petId: kotlin.Long,@Valid@QueryParam("name") name: kotlin.String?,@Valid@QueryParam("status") status: kotlin.String?) {
9596
TODO()
9697
}
9798

@@ -100,7 +101,7 @@ import okhttp3.Headers
100101
@RequestContentType(MediaTypes.APPLICATION_OCTETSTREAM /* unknown -> multipart/form-data */ )
101102
@ResponseContentType(MediaTypes.APPLICATION_JSON)
102103
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
103-
fun uploadFile( @PathParam("petId") petId: kotlin.Long,@Valid@QueryParam("additionalMetadata") additionalMetadata: kotlin.String?,): ModelApiResponse {
104+
fun uploadFile(@PathParam("petId") petId: kotlin.Long,@Valid@QueryParam("additionalMetadata") additionalMetadata: kotlin.String?,): ModelApiResponse {
104105
TODO()
105106
}
106107
}

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import misk.web.Delete
1919
import misk.web.Description
2020
import misk.web.Get
2121
import misk.web.HttpCall
22+
import misk.web.Patch
2223
import misk.web.PathParam
2324
import misk.web.Post
2425
import misk.web.Put
@@ -40,7 +41,7 @@ import okhttp3.Headers
4041
@Delete("/store/order/{orderId}")
4142
@Description("Delete purchase order by ID")
4243
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
43-
fun deleteOrder( @PathParam("orderId") orderId: kotlin.String) {
44+
fun deleteOrder(@PathParam("orderId") orderId: kotlin.String) {
4445
TODO()
4546
}
4647

@@ -56,7 +57,7 @@ import okhttp3.Headers
5657
@Description("Find purchase order by ID")
5758
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
5859
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
59-
fun getOrderById(@Min(1L) @Max(5L) @PathParam("orderId") orderId: kotlin.Long): Order {
60+
fun getOrderById(@Min(1L) @Max(5L) @PathParam("orderId") orderId: kotlin.Long): Order {
6061
TODO()
6162
}
6263

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import misk.web.Delete
1919
import misk.web.Description
2020
import misk.web.Get
2121
import misk.web.HttpCall
22+
import misk.web.Patch
2223
import misk.web.PathParam
2324
import misk.web.Post
2425
import misk.web.Put
@@ -64,15 +65,15 @@ import okhttp3.Headers
6465
@Delete("/user/{username}")
6566
@Description("Delete user")
6667
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
67-
fun deleteUser( @PathParam("username") username: kotlin.String) {
68+
fun deleteUser(@PathParam("username") username: kotlin.String) {
6869
TODO()
6970
}
7071

7172
@Get("/user/{username}")
7273
@Description("Get user by user name")
7374
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
7475
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
75-
fun getUserByName( @PathParam("username") username: kotlin.String): User {
76+
fun getUserByName(@PathParam("username") username: kotlin.String): User {
7677
TODO()
7778
}
7879

@@ -95,7 +96,7 @@ import okhttp3.Headers
9596
@Description("Updated user")
9697
@RequestContentType(MediaTypes.APPLICATION_JSON)
9798
@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
98-
fun updateUser( @PathParam("username") username: kotlin.String,@Valid @RequestBody user: User) {
99+
fun updateUser(@PathParam("username") username: kotlin.String,@Valid @RequestBody user: User) {
99100
TODO()
100101
}
101102
}

0 commit comments

Comments
 (0)