mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 22:26:09 +00:00
[Elixir] update to 1.6 version (#2741)
* [Elixir] update version / add test * update samples (add missing 200 responses in petstore-with-fake-endpoints-models-for-testing.yaml) * [Elixir] update to 1.6 version * [Elixir] fix test petapi
This commit is contained in:
committed by
William Cheng
parent
6e6926a8b8
commit
0ae43fcb7a
@@ -44,6 +44,7 @@ public class PetApi {
|
||||
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>405</b> - Invalid input
|
||||
* @param body Pet object that needs to be added to the store
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
@@ -54,6 +55,7 @@ public class PetApi {
|
||||
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>405</b> - Invalid input
|
||||
* @param body Pet object that needs to be added to the store
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
@@ -128,6 +130,7 @@ public class PetApi {
|
||||
|
||||
/**
|
||||
* Deletes a pet
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - Invalid pet value
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey The apiKey parameter
|
||||
@@ -139,6 +142,7 @@ public class PetApi {
|
||||
|
||||
/**
|
||||
* Deletes a pet
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - Invalid pet value
|
||||
* @param petId Pet id to delete
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
@@ -471,6 +475,7 @@ public class PetApi {
|
||||
|
||||
/**
|
||||
* Update an existing pet
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - Invalid ID supplied
|
||||
* <p><b>404</b> - Pet not found
|
||||
* <p><b>405</b> - Validation exception
|
||||
@@ -483,6 +488,7 @@ public class PetApi {
|
||||
|
||||
/**
|
||||
* Update an existing pet
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - Invalid ID supplied
|
||||
* <p><b>404</b> - Pet not found
|
||||
* <p><b>405</b> - Validation exception
|
||||
|
||||
@@ -57,6 +57,7 @@ public class PetApi {
|
||||
nickname = "addPet",
|
||||
tags = { "pet" })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "successful operation") ,
|
||||
@ApiResponse(code = 405, message = "Invalid input") })
|
||||
public AddPetOper addPet() {
|
||||
return new AddPetOper(reqSpec);
|
||||
@@ -67,6 +68,7 @@ public class PetApi {
|
||||
nickname = "deletePet",
|
||||
tags = { "pet" })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "successful operation") ,
|
||||
@ApiResponse(code = 400, message = "Invalid pet value") })
|
||||
public DeletePetOper deletePet() {
|
||||
return new DeletePetOper(reqSpec);
|
||||
@@ -112,6 +114,7 @@ public class PetApi {
|
||||
nickname = "updatePet",
|
||||
tags = { "pet" })
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "successful operation") ,
|
||||
@ApiResponse(code = 400, message = "Invalid ID supplied") ,
|
||||
@ApiResponse(code = 404, message = "Pet not found") ,
|
||||
@ApiResponse(code = 405, message = "Validation exception") })
|
||||
|
||||
@@ -51,6 +51,7 @@ public class PetApi {
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>405</b> - Invalid input
|
||||
* @param body Pet object that needs to be added to the store
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
@@ -84,6 +85,7 @@ public class PetApi {
|
||||
/**
|
||||
* Deletes a pet
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - Invalid pet value
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey The apiKey parameter
|
||||
@@ -235,6 +237,7 @@ public class PetApi {
|
||||
/**
|
||||
* Update an existing pet
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - Invalid ID supplied
|
||||
* <p><b>404</b> - Pet not found
|
||||
* <p><b>405</b> - Validation exception
|
||||
|
||||
@@ -51,6 +51,7 @@ public class PetApi {
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>405</b> - Invalid input
|
||||
* @param body Pet object that needs to be added to the store
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
@@ -84,6 +85,7 @@ public class PetApi {
|
||||
/**
|
||||
* Deletes a pet
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - Invalid pet value
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey The apiKey parameter
|
||||
@@ -235,6 +237,7 @@ public class PetApi {
|
||||
/**
|
||||
* Update an existing pet
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - Invalid ID supplied
|
||||
* <p><b>404</b> - Pet not found
|
||||
* <p><b>405</b> - Validation exception
|
||||
|
||||
@@ -50,6 +50,7 @@ public class PetApi {
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>405</b> - Invalid input
|
||||
* @param body Pet object that needs to be added to the store
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
@@ -83,6 +84,7 @@ public class PetApi {
|
||||
/**
|
||||
* Deletes a pet
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - Invalid pet value
|
||||
* @param petId Pet id to delete
|
||||
* @param apiKey The apiKey parameter
|
||||
@@ -234,6 +236,7 @@ public class PetApi {
|
||||
/**
|
||||
* Update an existing pet
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - Invalid ID supplied
|
||||
* <p><b>404</b> - Pet not found
|
||||
* <p><b>405</b> - Validation exception
|
||||
|
||||
Reference in New Issue
Block a user