Giter Site home page Giter Site logo

tea_subscriptions's Introduction

README

Screen Shot 2022-01-14 at 7 49 37 AM

Built With

Framework

Tools

Gems

Development Principles

  • GET /api/v1/teas

{
  "data": [
    {
      "id": "1",
      "type": "tea",
      "attributes": {
        "name": "Cerasse",
        "description": "In harum fugiat temporibus.",
        "temperature": 186,
        "brew_time": 3
      }
    },
    {
      "id": "2",
      "type": "tea",
      "attributes": {
        "name": "Rougui",
        "description": "Qui molestiae dolorum repudiandae.",
        "temperature": 153,
        "brew_time": 5
      }
    }
  ]
}
  • GET /api/v1/teas/1

{
  "data": {
    "id": "1",
    "type": "tea",
    "attributes": {
      "name": "Cerasse",
      "description": "In harum fugiat temporibus.",
      "temperature": 186,
      "brew_time": 3
    }
  }
}
  • GET /api/v1/customers

{
  "data": [
    {
      "id": "1",
      "type": "customer",
      "attributes": {
        "first_name": "Lenard",
        "last_name": "Torp",
        "email": "[email protected]",
        "address": "76547 Bauch Streets, South Michaele, IN 02949-7386"
      }
    },
    {
      "id": "2",
      "type": "customer",
      "attributes": {
        "first_name": "Bill",
        "last_name": "Ruecker",
        "email": "[email protected]",
        "address": "176 Gutkowski Oval, North Deweychester, AR 29498-1317"
      }
    }
  ]
}
  • GET /api/v1/customers/1

{
  "data": {
    "id": "1",
    "type": "customer",
    "attributes": {
      "first_name": "Lenard",
      "last_name": "Torp",
      "email": "[email protected]",
      "address": "76547 Bauch Streets, South Michaele, IN 02949-7386"
    }
  }
}
  • POST /api/v1/customers/1/subscriptions/1

{
  "data": {
    "id": "3",
    "type": "subscription",
    "attributes": {
      "title": "Cerasse Subscription",
      "price": 4.99,
      "status": "active",
      "frequency": "2",
      "tea_id": 1,
      "customer_id": 1
    }
  }
}
  • PATCH /api/v1/customers/1/subscriptions/1

{
  "data": {
    "id": "3",
    "type": "subscription",
    "attributes": {
      "title": "Cerasse Subscription",
      "price": 4.99,
      "status": "cancelled",
      "frequency": "2",
      "tea_id": 1,
      "customer_id": 1
    }
  }
}
  • GET /api/v1/customers/1/subscriptions

{
  "data": [
    {
      "id": "1",
      "type": "subscription",
      "attributes": {
        "title": "Cerasse Subscription",
        "price": 4.99,
        "status": "cancelled",
        "frequency": "2",
        "tea_id": 1,
        "customer_id": 1
      }
    },
    {
      "id": "2",
      "type": "subscription",
      "attributes": {
        "title": "Cerasse Subscription",
        "price": 4.99,
        "status": "cancelled",
        "frequency": "2",
        "tea_id": 1,
        "customer_id": 1
      }
    }
  ]
}
  • GET /api/v1/customers/1/subscriptions/1

{
  "data": [
    {
      "id": "1",
      "type": "subscription",
      "attributes": {
        "title": "Cerasse Subscription",
        "price": 4.99,
        "status": "cancelled",
        "frequency": "2",
        "tea_id": 1,
        "customer_id": 1
      }
    }
  ]
}

tea_subscriptions's People

Contributors

khoifishpond 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.