Giter Club home page Giter Club logo

tea_service's Introduction

Tea Service

About This Project

Important to Note

This is a back end repository for a back end application. The back end repository can be found:

GitHub

Mod 4 Take Home Project

Tea_Service is an app that allows users to subscribe to different teas. Users are able to cancel their tea subscriptions at any time and can change the frequency of their tea delivery from weekly to monthly and vice versa. Users are able to also view all of their tea subscriptions on their dashboard, both active and canceled.

Purpose

The purpose of the back end appp for Tea_Service is to build API endpoints which stores a many-to-many database for customers, teas, and subscriptions. Customers and teas are able to have a relationshp through subscriptions.

The overall purpose of the back end application is to support seamless data management. It plays a vital role in ensuring the app's functionality, enhancing the xperience of users looking to subscribe to different types of teas that can be delivered to them.

Built With

Ruby

Getting Started

  1. Fork the project
  2. Clone the repository
git clone https://github.com/angelbyun/tea_service

Endpoints Used

    
      POST '/subscribe' - Add Subscription
      PATCH '/unsubscribe' - Cancel Subscription
      GET '/subscriptions' - All Subscriptions
    
  

Response

    
Add Subscription

{
"data": {
    "id": "1",
    "type": "subscription",
    "attributes": {
        "title": "Hibiscus",
        "price": "12.00",
        "status": "Active",
        "frequency": "Monthly",
        "customer_id": 1,
        "tea_id": 3
    }
}

}

Cancel Subscription

{ "data": { "id": "1", "type": "subscription", "attributes": { "title": "Hibiscus", "price": "12.00", "status": "Canceled", "frequency": "Monthly", "customer_id": 1, "tea_id": 3 } } }

All Subscriptions

{ "data": { [ "id": "1" "type": "subscription" "attributes": { "title": "Hibiscus", "price": "12.00", "status": "Active", "frequency": "Monthly", "customer_id": 1, "tea_id": 3 }, { "title": "Butterfly Pea", "price": "15.00", "status": "Active", "frequency": "Yearly", "customer_id": 1, "tea_id": 4 },... ] } }

Schema

Authors

  • Angel Byun GitHub LinkedIn

tea_service's People

Contributors

angelbyun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.