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

products: post/put => update #131

Closed kenziebottoms closed 6 years ago

kenziebottoms commented 6 years ago

Description

PUT and POST now use the same model and controller functions.

Related Ticket(s)

103

Steps to Test Solution

  1. npm run db:generate
  2. npm start
  3. Make a POST request to route root (/employees, /customers, etc.)
  4. Make a PUT request to an existing ID
  5. Make a PUT request to an ID that doesn't have an object (use ID 100 because you know that won't be in use)
  6. Check that all requests do what you expect them to.
  7. All requests should return the ID of the updated/created object
jordan-castelloe commented 6 years ago

Testing!