DanielBabcock / MedRecordsBack

Rails API for NSS back-end capstone.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions rails g model User name email password_digest rails db:migrate

curl -H "Content-Type: application/json" -X POST -d '{"email":"example@mail.com","password":"123123123"}' http://localhost:3000/authenticate

{"auth_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE0NjA2NTgxODZ9.xsSwcPC22IR71OBv6bU_OGCSyfE89DvEzWfDU0iybMA"}

curl http://localhost:3000/items {"error":"Not Authorized"}

curl -H "Authorization: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJleHAiOjE1MTMwOTc1Nzh9.xCrVHZwyFhwsP4CbFDwAWgo7ADAAWLb0wnYobU9wG9o" http://localhost:3000/items

About

Rails API for NSS back-end capstone.


Languages

Language:Ruby 99.6%Language:HTML 0.4%