Allow developers to access Customer resource
Closed this issue · 1 comments
kimberly-bird commented
Verbs to be supported
- GET
- POST
- 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.
jasehackman commented
#11 is also for customers