This project was created for the 4th module of the backend program at Turing School of Software & Design. This app uses TDD and Ruby on Rails to create API endpoints for a frontend app "DocUWell" to use. The frontend app in production can be found at https://myhealthnavigator.herokuapp.com/. The app was designed to take in and store a user's medical data i.e their appointments, providers, insurance information and prescriptions.
- Clone the git repository
- Run
bundle
from the project directory - Run
bundle exec rake db:{create,migrate,seed}
- run
rails s
and visitlocalhost:3000/api/v1
to begin interacting with API endpoints
https://my-health-tracker.herokuapp.com/api/v1
- URI:
/providers
- METHOD:
POST
- DATA PARAMS:
api_key=[string]
given_name=[string]
surname=[string]
street_address=[string]
city=[string]
state=[string]
zip=[string]
phone=[string]
speciality=[enum]
enum = allergist, anesthesiologist, cardiologist, dentist, dermatologist, endocrinologist, general_practitioner, gastroenterologist, geneticist, geriatric_specialist, gynecologist, hematologist, internist, massage_therapist, naturopath, nephrologist, neurologist, obstetrician, oncologist, ophthalmologist, optometrist, osteopath, palliative, pediatrician, podiatrist, psychiatrist, pulmonologist, radiologist, rheumatologist, surgeon, urologist
- DATA RESPONSE:
- URI:
/profiles
- METHOD:
POST
- DATA PARAMS:
api_key=[string]
user_id=[integer]
given_name=[string]
surname=[string]
dob=[unix time]
height=[integer]
weight=[integer]
bp_systolic=[integer]
bp_diastolic=[integer]
heart_rate=[integer]
blood_type=[enum]
enum = o_negative, o_positive, a_negative, a_positive, b_negative, b_positive, ab_negative, ab_positive
- DATA RESPONSE:
- URI:
/profiles
- METHOD:
PATCH
- DATA PARAMS:
api_key=[string]
profile_id=[integer]
the profile param to be modified - DATA RESPONSE:
-
URI:
/insurances
-
METHOD:
POST
-
DATA PARAMS:
api_key=[string]
profile_id=[integer]
carrier=[string]
group_number=[string]
id_number=[string]
phone_number=[string]
insurance_type=[enum]
enum = medical, dental, vision, supplemental
- URI:
/appointments
- METHOD:
POST
- DATA PARAMS:
api_key=[string]
profile_id=[integer]
provider_id=[integer]
datetime=[unix]
- DATA RESPONSE:
- URI:
/appointments
- METHOD:
DELETE
- DATA PARAMS:
api_key=[string]
profile_id=[integer]
appointment_id=[integer]
- DATA RESPONSE:
-
URI:
/prescriptions
-
METHOD:
POST
-
DATA PARAMS:
api_key=[string]
profile_id=[integer]
provider_id=[integer]
name=[string]
date=[unix]
directions=[string]
refill=[boolean]
dose_units=[enum]
-
URI:
/prescriptions
-
METHOD:
DELETE
-
DATA PARAMS:
api_key=[string]
profile_id=[integer]
provider_id=[integer]
prescription_id=[integer]
- from the terminal and the project root, run
bundle exec rspec
- Ruby v 2.4.1
- Rails 5.2.2
- Postgresql
- RSpec
- UPS API
- Travis CI
- Fork this repo
- Create your feature branch (
git checkout -b feature/thingamajig
) - Commit your changes (
git commit -am 'Added a cool doodad!'
) - Push to the branch (
git push origin feature/thingamajig
) - Create a new Pull Request
Miriam Bensalah Github:https://github.com/mmbensalah
Norm Schultz Twitter:@normanrs Github:https://github.com/normanrs Web:http://www.normanrschultz.com