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

employees: combine put/post into update #119

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. Depending on whether or not Joe's PR #117 has been merged, comment out superfluous routes
  3. npm start
  4. Make a POST request to route root (/employees, /customers, etc.)
  5. Make a PUT request to an existing ID
  6. 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)
  7. Check that all requests do what you expect them to.
  8. All requests should return the ID of the updated/created object
jordan-castelloe commented 6 years ago

testing!