@Path(value="/store") @Produces(value={"application/json","application/xml"}) public class PetStoreResource extends Object
Constructor and Description |
---|
PetStoreResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteOrder(Long orderId) |
Map<String,Integer> |
getInventory() |
javax.ws.rs.core.Response |
getOrderById(Long orderId) |
Order |
placeOrder(Order order) |
@GET @Path(value="/inventory") @Produces(value={"application/json","application/xml"}) public Map<String,Integer> getInventory()
@GET @Path(value="/order/{orderId}") public javax.ws.rs.core.Response getOrderById(@PathParam(value="orderId") Long orderId) throws NotFoundException
NotFoundException
@DELETE @Path(value="/order/{orderId}") public javax.ws.rs.core.Response deleteOrder(@PathParam(value="orderId") Long orderId)
Copyright © 2022 Eclipse Foundation. All rights reserved.