forked from loafle/openapi-generator-original
[BUG][Kotlin-client] Handling default values of parameters (#12255)
* Bugfix Kotlin-client: Handling default values of parameters * Adding object
This commit is contained in:
@@ -17,7 +17,7 @@ interface PetApi {
|
||||
* Responses:
|
||||
* - 405: Invalid input
|
||||
*
|
||||
* @param body Pet object that needs to be added to the store
|
||||
* @param body Pet object that needs to be added to the store
|
||||
* @return [Call]<[Unit]>
|
||||
*/
|
||||
@POST("pet")
|
||||
@@ -29,7 +29,7 @@ interface PetApi {
|
||||
* Responses:
|
||||
* - 400: Invalid pet value
|
||||
*
|
||||
* @param petId Pet id to delete
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey (optional)
|
||||
* @return [Call]<[Unit]>
|
||||
*/
|
||||
@@ -43,7 +43,7 @@ interface PetApi {
|
||||
* - 200: successful operation
|
||||
* - 400: Invalid status value
|
||||
*
|
||||
* @param status Status values that need to be considered for filter
|
||||
* @param status Status values that need to be considered for filter
|
||||
* @return [Call]<[kotlin.collections.List<Pet>]>
|
||||
*/
|
||||
@GET("pet/findByStatus")
|
||||
@@ -56,7 +56,7 @@ interface PetApi {
|
||||
* - 200: successful operation
|
||||
* - 400: Invalid tag value
|
||||
*
|
||||
* @param tags Tags to filter by
|
||||
* @param tags Tags to filter by
|
||||
* @return [Call]<[kotlin.collections.List<Pet>]>
|
||||
*/
|
||||
@Deprecated("This api was deprecated")
|
||||
@@ -71,7 +71,7 @@ interface PetApi {
|
||||
* - 400: Invalid ID supplied
|
||||
* - 404: Pet not found
|
||||
*
|
||||
* @param petId ID of pet to return
|
||||
* @param petId ID of pet to return
|
||||
* @return [Call]<[Pet]>
|
||||
*/
|
||||
@GET("pet/{petId}")
|
||||
@@ -85,7 +85,7 @@ interface PetApi {
|
||||
* - 404: Pet not found
|
||||
* - 405: Validation exception
|
||||
*
|
||||
* @param body Pet object that needs to be added to the store
|
||||
* @param body Pet object that needs to be added to the store
|
||||
* @return [Call]<[Unit]>
|
||||
*/
|
||||
@PUT("pet")
|
||||
@@ -97,7 +97,7 @@ interface PetApi {
|
||||
* Responses:
|
||||
* - 405: Invalid input
|
||||
*
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param petId ID of pet that needs to be updated
|
||||
* @param name Updated name of the pet (optional)
|
||||
* @param status Updated status of the pet (optional)
|
||||
* @return [Call]<[Unit]>
|
||||
@@ -112,7 +112,7 @@ interface PetApi {
|
||||
* Responses:
|
||||
* - 200: successful operation
|
||||
*
|
||||
* @param petId ID of pet to update
|
||||
* @param petId ID of pet to update
|
||||
* @param additionalMetadata Additional data to pass to server (optional)
|
||||
* @param file file to upload (optional)
|
||||
* @return [Call]<[ModelApiResponse]>
|
||||
|
||||
@@ -15,7 +15,7 @@ interface StoreApi {
|
||||
* - 400: Invalid ID supplied
|
||||
* - 404: Order not found
|
||||
*
|
||||
* @param orderId ID of the order that needs to be deleted
|
||||
* @param orderId ID of the order that needs to be deleted
|
||||
* @return [Call]<[Unit]>
|
||||
*/
|
||||
@DELETE("store/order/{orderId}")
|
||||
@@ -40,7 +40,7 @@ interface StoreApi {
|
||||
* - 400: Invalid ID supplied
|
||||
* - 404: Order not found
|
||||
*
|
||||
* @param orderId ID of pet that needs to be fetched
|
||||
* @param orderId ID of pet that needs to be fetched
|
||||
* @return [Call]<[Order]>
|
||||
*/
|
||||
@GET("store/order/{orderId}")
|
||||
@@ -53,7 +53,7 @@ interface StoreApi {
|
||||
* - 200: successful operation
|
||||
* - 400: Invalid Order
|
||||
*
|
||||
* @param body order placed for purchasing the pet
|
||||
* @param body order placed for purchasing the pet
|
||||
* @return [Call]<[Order]>
|
||||
*/
|
||||
@POST("store/order")
|
||||
|
||||
@@ -14,7 +14,7 @@ interface UserApi {
|
||||
* Responses:
|
||||
* - 0: successful operation
|
||||
*
|
||||
* @param body Created user object
|
||||
* @param body Created user object
|
||||
* @return [Call]<[Unit]>
|
||||
*/
|
||||
@POST("user")
|
||||
@@ -26,7 +26,7 @@ interface UserApi {
|
||||
* Responses:
|
||||
* - 0: successful operation
|
||||
*
|
||||
* @param body List of user object
|
||||
* @param body List of user object
|
||||
* @return [Call]<[Unit]>
|
||||
*/
|
||||
@POST("user/createWithArray")
|
||||
@@ -38,7 +38,7 @@ interface UserApi {
|
||||
* Responses:
|
||||
* - 0: successful operation
|
||||
*
|
||||
* @param body List of user object
|
||||
* @param body List of user object
|
||||
* @return [Call]<[Unit]>
|
||||
*/
|
||||
@POST("user/createWithList")
|
||||
@@ -51,7 +51,7 @@ interface UserApi {
|
||||
* - 400: Invalid username supplied
|
||||
* - 404: User not found
|
||||
*
|
||||
* @param username The name that needs to be deleted
|
||||
* @param username The name that needs to be deleted
|
||||
* @return [Call]<[Unit]>
|
||||
*/
|
||||
@DELETE("user/{username}")
|
||||
@@ -65,7 +65,7 @@ interface UserApi {
|
||||
* - 400: Invalid username supplied
|
||||
* - 404: User not found
|
||||
*
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
* @param username The name that needs to be fetched. Use user1 for testing.
|
||||
* @return [Call]<[User]>
|
||||
*/
|
||||
@GET("user/{username}")
|
||||
@@ -78,8 +78,8 @@ interface UserApi {
|
||||
* - 200: successful operation
|
||||
* - 400: Invalid username/password supplied
|
||||
*
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
* @param username The user name for login
|
||||
* @param password The password for login in clear text
|
||||
* @return [Call]<[kotlin.String]>
|
||||
*/
|
||||
@GET("user/login")
|
||||
@@ -103,8 +103,8 @@ interface UserApi {
|
||||
* - 400: Invalid user supplied
|
||||
* - 404: User not found
|
||||
*
|
||||
* @param username name that need to be deleted
|
||||
* @param body Updated user object
|
||||
* @param username name that need to be deleted
|
||||
* @param body Updated user object
|
||||
* @return [Call]<[Unit]>
|
||||
*/
|
||||
@PUT("user/{username}")
|
||||
|
||||
Reference in New Issue
Block a user