/authority

(WIP) Node.js OAuth2 Provider service on Express, Postgresql

Primary LanguageJavaScript

authority

Node.js OAuth2 Provider service on Express and PostgreSQL.

Development

  1. brew install postgres

  2. npm install

  3. npm install -g foreman mocha nodemon gulp

  4. gulp dev:deps

  5. nf start --procfile=Procfile.dev

  6. Log into postgres and create the authority_dev and authority_test databases.

  7. gulp db:migrate

  8. gulp db:test:prepare

  9. bower install

  10. gulp assets:precompile

API Specification

GET /api/users

Query Parameters
  • page (Integer) - Starts with 1
  • limit (Integer) - Minimum of 1, maximum of 1000
Response (200 OK)
{
  "sample": "response"
}

GET /api/users/:user_id

URI Parameters
  • user_id (Integer)
Response (200 OK)
{
  "sample": "response"
}

POST /api/users

Request (Content-Type: application/json)
{
  "username": "solidsnake",
  "password": "raidensucks"
}

PUT /api/users/:user_id

DELETE /api/users/:user_id