Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 447 Bytes

README.md

File metadata and controls

23 lines (21 loc) · 447 Bytes

Books Directory

A very simple REST api for creating, reading, updating and deleting books using only vanilla node.

Available Endpoints

# All books
GET /api/books
# Single book
GET /api/books/:id
# Add book
POST /api/books
# Update book
PUT /api/books/:id
# Delete book
DELETE  /api/books/:id

Usage

Just clone the repo, cd and run:

npm i && npm run start

Now you can test it using something like curl or postman.