java.lang.Object
org.eclipse.microprofile.openapi.apps.petstore.resource.PetStoreResource

@Path("/store") @Produces({"application/json","application/xml"}) public class PetStoreResource extends Object
  • Constructor Details

    • PetStoreResource

      public PetStoreResource()
  • Method Details

    • getInventory

      @GET @Path("/inventory") @Produces({"application/json","application/xml"}) public Map<String,Integer> getInventory()
    • getOrderById

      @GET @Path("/order/{orderId}") public jakarta.ws.rs.core.Response getOrderById(@PathParam("orderId") Long orderId) throws NotFoundException
      Throws:
      NotFoundException
    • placeOrder

      @POST @Path("/order") public Order placeOrder(Order order)
    • deleteOrder

      @DELETE @Path("/order/{orderId}") public jakarta.ws.rs.core.Response deleteOrder(@PathParam("orderId") Long orderId)