raving-remoras/Bangazon-API

Allow developers to access Customer resource

Closed this issue · 1 comments

Verbs to be supported

  1. GET
  2. POST
  3. PUT
  • User should be able to GET a list of customers, and GET a single customer.
  • If the query string parameter of ?_include=products is provided, then any products that the customer is selling should be included in the response.
  • If the query string parameter of ?_include=payments is provided, then any payment types that the customer has used to pay for an order should be included in the response.
  • If the query string parameter of q is provided when querying the list of customers, then any customer that has property value that matches the pattern should be returned.

If /customers?q=mic is requested, then any customer whose first name is Michelle, or Michael, or Domicio should be returned. Any customer whose last name is Michaelangelo, or Omici, Dibromic should be returned. Every property of the customer object should be checked for a match.

#11 is also for customers