chicken-sloths / bangazon-api-sprint1

API for a mock Amazon + Etsy platform providing developers access to the company's employee & product data
0 stars 0 forks source link

Display Customers that haven't placed an Order #11

Closed Arwask closed 6 years ago

Arwask commented 6 years ago

By using the URL parameter /customers/?active=false, the JSON response should only contain customers that don't have any orders placed yet.

jordan-castelloe commented 6 years ago

Note to self: remember to store true/false as text in db since sqlite3 doesn't support booleans

TimAConner commented 6 years ago

We should decide what value we want to use for boolean in sqlite3. 0, 1, "true", "false"?

DavidLarsKetch commented 6 years ago

Just an update. This won't be handled by looking at a property active on a customer, but through joining Customers & Orders, returning Customers who do not appear on the customer_id prop of Orders

DavidLarsKetch commented 6 years ago

Refer to #92