Install dependencies:
yarn
Start server with node
:
node index.js
Start with nodemon
:
nodemon index.js
Access the endpoints via browser, httpie, or Postman.
Furnitures:
Route | HTTP Verb | Description |
---|---|---|
/characters |
GET |
Get all the furnitures |
/characters/:id |
GET |
Get a single furniture |
/characters |
POST |
Save a new furniture |
/characters/search?q=name |
GET |
Search furniture by name |
/characters |
DELETE |
Remove all the furnitures |
/characters/remove/:id |
DELETE |
Remove a furniture |
/characters/update/:id |
PATCH |
Update an item with new info |