Tea Subscription is the backend engine of a subscription site site. The app exposes and designs API endpoints to perform A customer will be abale to add a subscription to their account, deactivate an active subscription, and see all of their subscriptions.
- Return all subscriptions of a specific customer;
- GET
/api/v1/customers/:customer_id/subscriptions
- Return a specific subscription
- GET
/api/v1/customers/:customer_id/subscriptions/:id
- Cancel or Reactivate a subscription
- PATCH
/api/v1/customers/:customer_id/subscriptions/:id
- Install Ruby (preferably, version >= 2.5.3)
- clone repo to your local
- run
bundle install
- run
rake db:{drop,create,migrate,seed}
- run
rails db:schema:dump
- run
rails s
- hit endpoints either from your browser or postman
From your terminal, follow the Local Installation, fork the Tea Subscription Collection, and hit run!