Administrator can perform CRUD through REST on Order
In order to administer the Order entity As an Administrator I want to perform CRUD operations
Estimated time (days): 1 (relying on previously created Item patterns)
Acceptance Criteria
Scenario 1: Developer level acceptance Given a running MBM platform And a local in-memory database When a GET request against /orders is issued with admin credentials and paging requirements Then the response will contain a paged HAL representation of all Orders Done?
Scenario 2: Developer level acceptance Given a running MBM platform And a local in-memory database When a POST request against /orders is issued with admin credentials And the request contains a valid AdminCreateOrderRequest entity represented in HAL Then the response will contain a HAL representation of the new Order Done?
Scenario 3: Developer level acceptance Given a running MBM platform And a local in-memory database When a PUT request against /order/{orderId} is issued with admin credentials And the request contains a valid AdminUpdateOrderRequest entity represented in HAL Then the response will contain a HAL representation of the updated Order Done?
Scenario 4: Developer level acceptance Given a running MBM platform And a local in-memory database When a DELETE request against /orders/{orderId} is issued with admin credentials Then the response will contain a confirmation of the delete Done?