- Ruby version 2.6.1
- Rails
- Responsible for uploading resumes and attaching them to users.
- Have title and revision per resume that could be changed.
- Responsible for returning a list of resumes per user and attaching new resumes for a user.
- Run
bundle install
to fetch and install the gems. - For locally testing the database, setup postgresql and run
bundle exec rails db:setup
. - Run
bundle exec rails server
to run the Rails server.
- Releases on master branches are automatically deployed to Heroku.
- Pull requests are tested on Travis before being deployed to a Heroku instance.
- All requests are expected to include the following headers:
"Content-type": "application/json"
"Authorization": "Bearer [token]"
- All requests would not allow a user to access another user's data.
- All parameters are to be stored in the request body as JSON.
- Create a new resume
- Params:
user_id
: Foreign keyuser_name
revision
title
resume_data
: Base64 of the PDF
- List all resumes for a specific user
- Update resume with the new title and the new revision passed
- Params:
title
revision
- List a specific resume
- Delete a specific resume