Class SimpleInventoryItemResource

java.lang.Object
dev.getelements.elements.rest.inventory.SimpleInventoryItemResource

@Path("inventory/simple") @Produces("application/json") public class SimpleInventoryItemResource extends Object
  • Constructor Details

    • SimpleInventoryItemResource

      public SimpleInventoryItemResource()
  • Method Details

    • getSimpleInventoryItem

      @GET @Path("{inventoryItemId}") public InventoryItem getSimpleInventoryItem(@PathParam("inventoryItemId") String itemNameOrId)
    • getSimpleInventoryItems

      @GET public Pagination<InventoryItem> getSimpleInventoryItems(@QueryParam("offset") @DefaultValue("0") int offset, @QueryParam("count") @DefaultValue("20") int count, @QueryParam("userId") String userId, @QueryParam("search") String search)
    • adjustSimpleInventoryItemQuantity

      @PATCH @Consumes("application/json") @Produces("application/json") @Path("{inventoryItemId}") public InventoryItem adjustSimpleInventoryItemQuantity(@PathParam("inventoryItemId") String inventoryItemId, SimpleInventoryItemQuantityAdjustment simpleInventoryItemQuantityAdjustment)
    • updateSimpleInventoryItem

      @PUT @Consumes("application/json") @Produces("application/json") @Path("{inventoryItemId}") public InventoryItem updateSimpleInventoryItem(@PathParam("inventoryItemId") String inventoryItemId, UpdateInventoryItemRequest updateInventoryItemRequest)
    • createSimpleInventoryItem

      @POST @Consumes("application/json") @Produces("application/json") public InventoryItem createSimpleInventoryItem(CreateSimpleInventoryItemRequest createSimpleInventoryItemRequest)
    • deleteSimpleInventoryItem

      @DELETE @Path("{inventoryItemId}") public void deleteSimpleInventoryItem(@PathParam("inventoryItemId") String inventoryItemId)
    • getValidationHelper

      public ValidationHelper getValidationHelper()
    • setValidationHelper

      @Inject public void setValidationHelper(ValidationHelper validationHelper)
    • getSimpleInventoryItemService

      public SimpleInventoryItemService getSimpleInventoryItemService()
    • setSimpleInventoryItemService

      @Inject public void setSimpleInventoryItemService(SimpleInventoryItemService simpleInventoryItemService)