Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.12 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.12 KB

rest-api

TODO App

Demo app with basic REST API

REST API

List of basic routes:

Route HTTP Description
/api/signup POST Signup with new user info
/api/signin POST Sign in while get an access token based on credentials
/api/users GET Get all the users info (admin only)
/api/users/:id GET Get a single user info (admin and authenticated user)
/api/users POST Create user (admin only)
/api/users/:id DELETE Delete a user (admin only)
/api/users/:id PUT Update a user with new info (admin only and authenticated user)

Usage

With only npm :

** npm install npm start **

Access the website vi http://localhost:3000 or API via http://localhost:3000/api Access heroku : https://myrestapi-p2d1.herokuapp.com