Users app
This repository is the base app for all other service applications.
When you clone a child repository, make sure you add this as an upstream.
$ git remote add upstream git@github.com:onmyblock/rails.git
Then you can pull in upstream changes by calling:
$ git pull upstream master
Before running your app, install the gems:
$ fig run app bundle install
Use fig
to interact with the application containers:
$ fig run app rspec
$ fig run app rails console
$ fig run app foreman start
When making requests to authenticated endpoints, add a token in the
OMB-Authorization
HTTP Header.
version = v1
Action | Method | Endpoint | Parameters |
---|---|---|---|
Login | POST | /api/[version]/authentication | identification (email), password |
Logout | DELETE | /api/[version]/authentication | N/A |
Action | Method | Endpoint | Parameters |
---|---|---|---|
Create | POST | /api/[version]/credential/reset | identification (email) |
Action | Method | Endpoint | Parameters |
---|---|---|---|
Create | POST | /api/[version]/credential/reset/update | password, token |
Action | Method | Endpoint | Parameters |
---|---|---|---|
Update | PUT/PATCH | /api/[version]/credentials | token |
Action | Method | Endpoint | Parameters |
---|---|---|---|
Create | POST | /api/[version]/users | email, first_name, last_name, password |
Update | PUT/PATCH | /api/[version]/users/:id | email, first_name, id, last_name, roles |