https://github.com/aitoroses/zrc-node
ZRC API
https://github.com/aitoroses/zrc-node
Last synced: over 1 year ago
JSON representation
ZRC API
- Host: GitHub
- URL: https://github.com/aitoroses/zrc-node
- Owner: aitoroses
- Created: 2013-06-04T13:56:31.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-04T15:11:02.000Z (about 13 years ago)
- Last Synced: 2024-04-15T11:37:45.486Z (about 2 years ago)
- Language: JavaScript
- Size: 9.74 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
zr-node
=============
Node.js Application for ZRC
#MODULES
- api
- mongodb
- Database connection
- User model (bcrypt)
- controllers
- auth: Authorization API module
- user: user API module
- config
- Express configuration
- Passport configuration
#API ROUTES
- ###AUTHORIZATION
- GET __/login__
- def: Login via get verb
- params: username, password
- POST __/login__
- def: Login via post verb
- params: username, password
- GET __/logout__
- def: Logout action
- GET __/account__
- def: Needs auth to access
- ###RESTful resources
- Users
- GET __/API/user/get__
- def: Get JSON with user count and User array
- POST __/API/user__
- def: Create a user on the database
- params: username, password