A simple budgeting app that will expand to take over the world!
Prerequisites:
- ensure you have quiz_api running with all gems and migrations up to date with seed data.
- install the latest postman from the google chrome store
- Open postman
- Set the request type to POST
- Set the url (field next to POST) to
http://<hostname>/api/account/token
if you're not using docker, it might looks something like localhost:<some_port>/api/account/token - Click headers and add a header called
Accept
with the valueapplication/json
- Then, click
Body -> from-data
and enter the following data fields (the following is listed then- key:
username
value:sterling@instructure.com
*everyone should have their own email @instructure.com added, check db/seeds/developent/02_user.seeds.rb for a full list of usernames and passwords available. - key:
password
value:password
- key:
grant_type
value:password
- key:
- Click send and you should get a request back with the token in the body
- Open postman
- Set the request type to GET
- Set the url (field next to GET) to
http://<hostname>/api/account/token/info
if you're not using docker, it might looks something like localhost:<some_port>/api/account/token/info - Click headers and add the following headers
- key:
Accept
value:application/json
- key:
Authorization
value:bearer <valid_jwt_generated_from_post>
- key:
- Click send and you should get back information about your token
- Open postman
- Set the request type to POST
- Set the url (field next to POST) to
http://<hostname>/api/account/token
if you're not using docker, it might looks something like localhost:<some_port>/api/account/token - Click headers and add a header called
Accept
with the valueapplication/json
- Then, click
Body -> from-data
and enter the following data fields (the following is listed then- key:
username
value:sterling@instructure.com
*everyone should have their own email @instructure.com added, check db/seeds/developent/02_user.seeds.rb for a full list of usernames and passwords available. - key:
password
value:password
- key:
grant_type
value:refresh_token
- key:
refresh_token
value:<refresh token recieved when creating a token with post>
- key:
- Click send and you should get a request back with the new token in the body