npm install
or yarn
npm start
or yarn start
server start at http://localhost:3000
npm run dev
or yarn dev
server start at http://localhost:3000
METHOD | URI | DESCRIPTION |
---|---|---|
GET | /books | Get all books |
GET | /books/1 | Get book by id |
POST | /books | Create book |
PUT | /books/1 | Update book |
DELETE | /books/1 | Delete book |