You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/server/petstore/kotlin-springboot-dollar-issue-swagger1/src/main/kotlin/org/openapitools/api/ItemsApiController.kt
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -41,9 +41,11 @@ class ItemsApiController(@Autowired(required = true) val service: ItemsApiServic
41
41
value ="SQ = \"; SBS = \\; DBS = \\\\; SD = \$some",
Copy file name to clipboardExpand all lines: samples/server/petstore/kotlin-springboot-dollar-issue-swagger1/src/main/kotlin/org/openapitools/api/PetApiController.kt
+40-20Lines changed: 40 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -41,9 +41,11 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
41
41
value ="Add a new pet to the store",
42
42
nickname ="addPet",
43
43
notes ="",
44
-
authorizations = [Authorization(value ="petstore_auth", scopes = [AuthorizationScope(scope ="write:pets", description ="modify pets in your account"), AuthorizationScope(scope ="read:pets", description ="read your pets")])])
44
+
authorizations = [Authorization(value ="petstore_auth", scopes = [AuthorizationScope(scope ="write:pets", description ="modify pets in your account"), AuthorizationScope(scope ="read:pets", description ="read your pets")])]
45
+
)
45
46
@ApiResponses(
46
-
value = [ApiResponse(code =405, message ="Invalid input")])
47
+
value = [ApiResponse(code =405, message ="Invalid input")]
48
+
)
47
49
@RequestMapping(
48
50
method = [RequestMethod.POST],
49
51
value = [PATH_ADD_PET/* "/pet" */],
@@ -60,9 +62,11 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
60
62
value ="Deletes a pet",
61
63
nickname ="deletePet",
62
64
notes ="",
63
-
authorizations = [Authorization(value ="petstore_auth", scopes = [AuthorizationScope(scope ="write:pets", description ="modify pets in your account"), AuthorizationScope(scope ="read:pets", description ="read your pets")])])
65
+
authorizations = [Authorization(value ="petstore_auth", scopes = [AuthorizationScope(scope ="write:pets", description ="modify pets in your account"), AuthorizationScope(scope ="read:pets", description ="read your pets")])]
66
+
)
64
67
@ApiResponses(
65
-
value = [ApiResponse(code =400, message ="Invalid pet value")])
68
+
value = [ApiResponse(code =400, message ="Invalid pet value")]
69
+
)
66
70
@RequestMapping(
67
71
method = [RequestMethod.DELETE],
68
72
value = [PATH_DELETE_PET/* "/pet/{petId}" */]
@@ -81,9 +85,11 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
81
85
notes ="Multiple status values can be provided with comma separated strings",
82
86
response =Pet::class,
83
87
responseContainer ="List",
84
-
authorizations = [Authorization(value ="petstore_auth", scopes = [AuthorizationScope(scope ="write:pets", description ="modify pets in your account"), AuthorizationScope(scope ="read:pets", description ="read your pets")])])
88
+
authorizations = [Authorization(value ="petstore_auth", scopes = [AuthorizationScope(scope ="write:pets", description ="modify pets in your account"), AuthorizationScope(scope ="read:pets", description ="read your pets")])]
89
+
)
85
90
@ApiResponses(
86
-
value = [ApiResponse(code =200, message ="successful operation", response =Pet::class, responseContainer ="List"),ApiResponse(code =400, message ="Invalid status value")])
91
+
value = [ApiResponse(code =200, message ="successful operation", response =Pet::class, responseContainer ="List"),ApiResponse(code =400, message ="Invalid status value")]
92
+
)
87
93
@RequestMapping(
88
94
method = [RequestMethod.GET],
89
95
value = [PATH_FIND_PETS_BY_STATUS/* "/pet/findByStatus" */],
@@ -102,9 +108,11 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
102
108
notes ="Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
103
109
response =Pet::class,
104
110
responseContainer ="List",
105
-
authorizations = [Authorization(value ="petstore_auth", scopes = [AuthorizationScope(scope ="write:pets", description ="modify pets in your account"), AuthorizationScope(scope ="read:pets", description ="read your pets")])])
111
+
authorizations = [Authorization(value ="petstore_auth", scopes = [AuthorizationScope(scope ="write:pets", description ="modify pets in your account"), AuthorizationScope(scope ="read:pets", description ="read your pets")])]
112
+
)
106
113
@ApiResponses(
107
-
value = [ApiResponse(code =200, message ="successful operation", response =Pet::class, responseContainer ="List"),ApiResponse(code =400, message ="Invalid tag value")])
114
+
value = [ApiResponse(code =200, message ="successful operation", response =Pet::class, responseContainer ="List"),ApiResponse(code =400, message ="Invalid tag value")]
115
+
)
108
116
@RequestMapping(
109
117
method = [RequestMethod.GET],
110
118
value = [PATH_FIND_PETS_BY_TAGS/* "/pet/findByTags" */],
@@ -122,9 +130,11 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
Copy file name to clipboardExpand all lines: samples/server/petstore/kotlin-springboot-dollar-issue-swagger1/src/main/kotlin/org/openapitools/api/StoreApiController.kt
+16-8Lines changed: 16 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -39,9 +39,11 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
39
39
@ApiOperation(
40
40
value ="Delete purchase order by ID",
41
41
nickname ="deleteOrder",
42
-
notes ="For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors")
42
+
notes ="For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors"
43
+
)
43
44
@ApiResponses(
44
-
value = [ApiResponse(code =400, message ="Invalid ID supplied"),ApiResponse(code =404, message ="Order not found")])
45
+
value = [ApiResponse(code =400, message ="Invalid ID supplied"),ApiResponse(code =404, message ="Order not found")]
46
+
)
45
47
@RequestMapping(
46
48
method = [RequestMethod.DELETE],
47
49
value = [PATH_DELETE_ORDER/* "/store/order/{orderId}" */]
@@ -59,9 +61,11 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
59
61
notes ="Returns a map of status codes to quantities",
0 commit comments