Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joshludahl/restify_api

Playing with RESTify
https://github.com/joshludahl/restify_api

Last synced: 12 days ago
JSON representation

Playing with RESTify

Awesome Lists containing this project

README

        

# RESTify API
Playing with RESTify - This is a basic user login system using JSON Web Tokens for route protection.

## Routes:

### User:

* POST '/register' - takes email and password and returns token
* GET '/users' - returns all users (must be authenticated)
* DELETE '/user/{id}' - deletes one user by id (must be authenticated & have authorization to delete user)
* POST '/login' - authenticates the user