brisag / tea_subscription

Rails API for a Tea Subscription Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tea Subscription Service

forthebadge forthebadge

Table of contents

Usage

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.

Subscription

  1. Return all subscriptions of a specific customer;
  • GET /api/v1/customers/:customer_id/subscriptions
  1. Return a specific subscription
  • GET /api/v1/customers/:customer_id/subscriptions/:id
  1. Cancel or Reactivate a subscription
  • PATCH /api/v1/customers/:customer_id/subscriptions/:id

(Back to top)

Local Install

  1. Install Ruby (preferably, version >= 2.5.3)
  2. clone repo to your local
  3. run bundle install
  4. run rake db:{drop,create,migrate,seed}
  5. run rails db:schema:dump
  6. run rails s
  7. hit endpoints either from your browser or postman

Run in Postman

From your terminal, follow the Local Installation, fork the Tea Subscription Collection, and hit run! Run in Postman

Contributing

(Back to top)

  • Thank you to Turing School of Software and Design for the inspiration and direction in building this application
  • Developed by Brisa Garcia Gonzales

About

Rails API for a Tea Subscription Service


Languages

Language:Ruby 99.5%Language:HTML 0.5%