mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 03:36:13 +00:00
Merge remote-tracking branch 'origin' into 7.0.x
This commit is contained in:
@@ -153,7 +153,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
Find purchase order by ID
|
||||
|
||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public interface PetApi {
|
||||
@POST
|
||||
|
||||
@Consumes({ "application/json", "application/xml" })
|
||||
public void addPet(Pet body) throws ApiException, ProcessingException;
|
||||
void addPet(Pet body) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Deletes a pet
|
||||
@@ -57,7 +57,7 @@ public interface PetApi {
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/{petId}")
|
||||
public void deletePet(@PathParam("petId") Long petId, @HeaderParam("api_key") String apiKey) throws ApiException, ProcessingException;
|
||||
void deletePet(@PathParam("petId") Long petId, @HeaderParam("api_key") String apiKey) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Finds Pets by status
|
||||
@@ -68,7 +68,7 @@ public interface PetApi {
|
||||
@GET
|
||||
@Path("/findByStatus")
|
||||
@Produces({ "application/xml", "application/json" })
|
||||
public List<Pet> findPetsByStatus(@QueryParam("status") List<String> status) throws ApiException, ProcessingException;
|
||||
List<Pet> findPetsByStatus(@QueryParam("status") List<String> status) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Finds Pets by tags
|
||||
@@ -81,7 +81,7 @@ public interface PetApi {
|
||||
@GET
|
||||
@Path("/findByTags")
|
||||
@Produces({ "application/xml", "application/json" })
|
||||
public List<Pet> findPetsByTags(@QueryParam("tags") List<String> tags) throws ApiException, ProcessingException;
|
||||
List<Pet> findPetsByTags(@QueryParam("tags") List<String> tags) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Find pet by ID
|
||||
@@ -92,7 +92,7 @@ public interface PetApi {
|
||||
@GET
|
||||
@Path("/{petId}")
|
||||
@Produces({ "application/xml", "application/json" })
|
||||
public Pet getPetById(@PathParam("petId") Long petId) throws ApiException, ProcessingException;
|
||||
Pet getPetById(@PathParam("petId") Long petId) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Update an existing pet
|
||||
@@ -101,7 +101,7 @@ public interface PetApi {
|
||||
@PUT
|
||||
|
||||
@Consumes({ "application/json", "application/xml" })
|
||||
public void updatePet(Pet body) throws ApiException, ProcessingException;
|
||||
void updatePet(Pet body) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Updates a pet in the store with form data
|
||||
@@ -110,7 +110,7 @@ public interface PetApi {
|
||||
@POST
|
||||
@Path("/{petId}")
|
||||
@Consumes({ "application/x-www-form-urlencoded" })
|
||||
public void updatePetWithForm(@PathParam("petId") Long petId, @Multipart(value = "name", required = false) String name, @Multipart(value = "status", required = false) String status) throws ApiException, ProcessingException;
|
||||
void updatePetWithForm(@PathParam("petId") Long petId, @Multipart(value = "name", required = false) String name, @Multipart(value = "status", required = false) String status) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* uploads an image
|
||||
@@ -120,5 +120,5 @@ public interface PetApi {
|
||||
@Path("/{petId}/uploadImage")
|
||||
@Consumes({ "multipart/form-data" })
|
||||
@Produces({ "application/json" })
|
||||
public ModelApiResponse uploadFile(@PathParam("petId") Long petId, @Multipart(value = "additionalMetadata", required = false) String additionalMetadata, @Multipart(value = "file" , required = false) Attachment _fileDetail) throws ApiException, ProcessingException;
|
||||
ModelApiResponse uploadFile(@PathParam("petId") Long petId, @Multipart(value = "additionalMetadata", required = false) String additionalMetadata, @Multipart(value = "file" , required = false) Attachment _fileDetail) throws ApiException, ProcessingException;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ public interface StoreApi {
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/order/{orderId}")
|
||||
public void deleteOrder(@PathParam("orderId") String orderId) throws ApiException, ProcessingException;
|
||||
void deleteOrder(@PathParam("orderId") String orderId) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Returns pet inventories by status
|
||||
@@ -59,18 +59,18 @@ public interface StoreApi {
|
||||
@GET
|
||||
@Path("/inventory")
|
||||
@Produces({ "application/json" })
|
||||
public Map<String, Integer> getInventory() throws ApiException, ProcessingException;
|
||||
Map<String, Integer> getInventory() throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Find purchase order by ID
|
||||
*
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
|
||||
*
|
||||
*/
|
||||
@GET
|
||||
@Path("/order/{orderId}")
|
||||
@Produces({ "application/xml", "application/json" })
|
||||
public Order getOrderById(@PathParam("orderId") Long orderId) throws ApiException, ProcessingException;
|
||||
Order getOrderById(@PathParam("orderId") Long orderId) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Place an order for a pet
|
||||
@@ -79,5 +79,5 @@ public interface StoreApi {
|
||||
@POST
|
||||
@Path("/order")
|
||||
@Produces({ "application/xml", "application/json" })
|
||||
public Order placeOrder(Order body) throws ApiException, ProcessingException;
|
||||
Order placeOrder(Order body) throws ApiException, ProcessingException;
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ public interface UserApi {
|
||||
*/
|
||||
@POST
|
||||
|
||||
public void createUser(User body) throws ApiException, ProcessingException;
|
||||
void createUser(User body) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
@@ -57,7 +57,7 @@ public interface UserApi {
|
||||
*/
|
||||
@POST
|
||||
@Path("/createWithArray")
|
||||
public void createUsersWithArrayInput(List<User> body) throws ApiException, ProcessingException;
|
||||
void createUsersWithArrayInput(List<User> body) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
@@ -65,7 +65,7 @@ public interface UserApi {
|
||||
*/
|
||||
@POST
|
||||
@Path("/createWithList")
|
||||
public void createUsersWithListInput(List<User> body) throws ApiException, ProcessingException;
|
||||
void createUsersWithListInput(List<User> body) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Delete user
|
||||
@@ -75,7 +75,7 @@ public interface UserApi {
|
||||
*/
|
||||
@DELETE
|
||||
@Path("/{username}")
|
||||
public void deleteUser(@PathParam("username") String username) throws ApiException, ProcessingException;
|
||||
void deleteUser(@PathParam("username") String username) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Get user by user name
|
||||
@@ -84,7 +84,7 @@ public interface UserApi {
|
||||
@GET
|
||||
@Path("/{username}")
|
||||
@Produces({ "application/xml", "application/json" })
|
||||
public User getUserByName(@PathParam("username") String username) throws ApiException, ProcessingException;
|
||||
User getUserByName(@PathParam("username") String username) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Logs user into the system
|
||||
@@ -93,7 +93,7 @@ public interface UserApi {
|
||||
@GET
|
||||
@Path("/login")
|
||||
@Produces({ "application/xml", "application/json" })
|
||||
public String loginUser(@QueryParam("username") String username, @QueryParam("password") String password) throws ApiException, ProcessingException;
|
||||
String loginUser(@QueryParam("username") String username, @QueryParam("password") String password) throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Logs out current logged in user session
|
||||
@@ -101,7 +101,7 @@ public interface UserApi {
|
||||
*/
|
||||
@GET
|
||||
@Path("/logout")
|
||||
public void logoutUser() throws ApiException, ProcessingException;
|
||||
void logoutUser() throws ApiException, ProcessingException;
|
||||
|
||||
/**
|
||||
* Updated user
|
||||
@@ -111,5 +111,5 @@ public interface UserApi {
|
||||
*/
|
||||
@PUT
|
||||
@Path("/{username}")
|
||||
public void updateUser(@PathParam("username") String username, User body) throws ApiException, ProcessingException;
|
||||
void updateUser(@PathParam("username") String username, User body) throws ApiException, ProcessingException;
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ public class StoreApiTest {
|
||||
/**
|
||||
* Find purchase order by ID
|
||||
*
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
* For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
|
||||
Reference in New Issue
Block a user