Closed kenziebottoms closed 6 years ago
Establishes the following endpoints:
GET /computers
GET /computers/:id
POST /computers
PUT /computers/:id
DELETE /computers/:id
fixes #56, extends #88, fixes #8
git checkout kb-computer-post
npm install
npm run db:generate
npm start
{ computer_id: 20, mac_address: "42:c6:54:a1:77:3d", purchase_date: "2016-04-06T01:32:38.272Z", decommission_date: "2017-11-10T14:25:59.680Z" }
POST localhost:8080/api/v1/computers
{ "mac_address": "hello", "purchase_date": "my name is", "decommission_date": "inigo montoya" }
PUT http://localhost:8080/api/v1/computers/20
DELETE localhost:8080/api/v1/computers/25
testing
testing!
I failed
Description
Establishes the following endpoints:
GET /computers
: get all computresGET /computers/:id
: get one computer by idPOST /computers
: post new computerPUT /computers/:id
: update one computer by idDELETE /computers/:id
: delete one computer by idRelated Ticket(s)
fixes #56, extends #88, fixes #8
Steps to Test Solution
git checkout kb-computer-post
npm install
npm run db:generate
npm start
POST localhost:8080/api/v1/computers
PUT http://localhost:8080/api/v1/computers/20
DELETE localhost:8080/api/v1/computers/25