Class PetStoreResource
java.lang.Object
org.eclipse.microprofile.openapi.apps.petstore.resource.PetStoreResource
@Path("/store")
@Produces({"application/json","application/xml"})
public class PetStoreResource
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsedeleteOrder(Long orderId) jakarta.ws.rs.core.ResponsegetOrderById(Long orderId) placeOrder(Order order)
-
Constructor Details
-
PetStoreResource
public PetStoreResource()
-
-
Method Details
-
getInventory
-
getOrderById
@GET @Path("/order/{orderId}") public jakarta.ws.rs.core.Response getOrderById(@PathParam("orderId") Long orderId) throws NotFoundException - Throws:
NotFoundException
-
placeOrder
-
deleteOrder
@DELETE @Path("/order/{orderId}") public jakarta.ws.rs.core.Response deleteOrder(@PathParam("orderId") Long orderId)
-