Closed kenziebottoms closed 6 years ago
When PUTting, if you hit an id that a computer doesn't already own, it creates a new one
PUT
npm checkout kb-computer-put
npm run db:generate
PUT http://localhost:8080/api/v1/computers/25
{"mac_address":"as:u:wish","purchase_date":"2016-10-08T13:17:00.534Z","decommission_date":"2017-06-22T09:18:52.019Z"}
GET http://localhost:8080/api/v1/computers/25
testing!
testing
Description
When
PUT
ting, if you hit an id that a computer doesn't already own, it creates a new oneRelated Ticket(s)
97
Steps to Test Solution
npm checkout kb-computer-put
npm run db:generate
PUT http://localhost:8080/api/v1/computers/25
GET http://localhost:8080/api/v1/computers/25
should now give you the above data