Tea, delivered just in the nick of time.
Report Bug
·
Request Feature
Table of Contents
The goal of this project is to create a Rails API for a Tea Subscription Service within a time limit of approximately 8 hours.
The minimum endpoints asked for are:
- An endpoint to subscribe a customer to a tea subscription
- An endpoint to cancel a customer’s tea subscription
- An endpoint to see all of a customer’s subscriptions (active and cancelled)
To get a local copy up and running follow these simple example steps.
» Ruby version 2.7.2
» Rails version 5.2.6
- Clone the repo
git clone https://github.com/lcpulzone/tea_time.git
- Install gems
bundle install
- Run
rails db:{create,migrate}
- To run testing suite
bundle exec rspec
See the open issues for a list of proposed features (and known issues).
DESCRIPTION | ACTION | PATH |
---|---|---|
create a new tea | POST | localhost:3000/api/v1/teas |
create a new customer | POST | localhost:3000/api/v1/customers |
create a new subscription | POST | localhost:3000/api/v1/customers/<customer_id>/subscriptions |
update a customer's subscription status | PATCH | localhost:3000/api/v1/customers/<customer_id>/subscriptions/<subscription_id> |
get all a customer's subscriptions | GET | localhost:3000/api/v1/customers/<customer_id>/subscriptions |
Contributions are what make the open source community such an amazingly rad place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/RadFeature
) - Commit your Changes (
git commit -m 'Add some RadFeature'
) - Push to the Branch (
git push origin feature/RadFeature
) - Open a Pull Request
Leigh Cepriano Pulzone - Linkedin - GitHub - Email
Project Link: Tea Time