Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow developers to access the Order resource #4

Open
stevebrownlee opened this issue Jul 22, 2017 · 1 comment
Open

Allow developers to access the Order resource #4

stevebrownlee opened this issue Jul 22, 2017 · 1 comment

Comments

@stevebrownlee
Copy link
Member

stevebrownlee commented Jul 22, 2017

Feature Criteria

Verbs to be supported

  1. GET
  2. POST
  3. PUT
  4. DELETE
  • User should be able to GET a list, and GET a single item.
  • When an order is deleted, every line item (i.e. entry in OrderProduct) should be removed
  • Should be able to filter out completed orders with the ?completed=false query string parameter. If the parameter value is true, then only completed order should be returned.
  • If the query string parameter of ?_include=products is in the URL, then the list of products in the order should be returned.
  • If the query string parameter of ?_include=customers is in the URL, then the customer representation should be included in the response.

Testing Criteria

Write a testing class and test methods that validate the GET, POST, PUT, and DELETE operations work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants