This project is an example of implentation of REST API in NodeJS framework with express library.
Project implements all REST concepts:
- proper HTTP status code in responses
- proper error message
- RESTful routing
- quering data through URL (filtering and sorting)
Project uses:
- ES6
- eslint
- prettier
- nodemon, as development server
- unit tests as system verification
http://petsy.us.openode.io/pets/
npm install
npm start
https://www.getpostman.com/collections/3faa73530a21e02e081a
npm run format
npm run eslint
Get all pets sorted by ID and filtered by name Dog [GET] http://petsy.us.openode.io/pets?sort=id&name=Dog
Get single pet by ID [GET] http://petsy.us.openode.io/pets/1622147641
Delete single pet by ID [DELETE] http://petsy.us.openode.io/pets/1622147641
Ivana Fustar ivanafustar@hotmail.com