dgaudet / books-api

REST API for a books catalog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REST API for a books catalog

To list books collection

GET /books

Response list of books:

[{
  "id": "...",
  "title": "...",
  "authors": [ "..." ],
  ...
}, ...]

To get a book by Id:

GET /books/:bookId

Response 1 book or 404 if not found:

{
  "id": "...",
  "title": "...",
  "authors": [ "..." ],
  ...
}

To get books by category:

GET /books?category=history

Response 0 or more books:

[{
  ...book json...
}, ...]

Install

npm install

Run

npm start

About

REST API for a books catalog


Languages

Language:JavaScript 100.0%