Git Product home page Git Product logo

bookkeeping-demo's People

Contributors

zhuzean avatar

Stargazers

 avatar

Watchers

 avatar  avatar

bookkeeping-demo's Issues

Endpoint for the bill details

Purpose

GET method: An endpoint to return a list of bill detail
POST method: An endpoint to create a new bill record

Acceptance

  • Can see create time, usage, amount of money, method
  • Can support pagination, default page: 1 and limit: 5

Schema

GET /bills/

{
    "pagination": {
        "next": "http://api.zean.pro/bills/?page=2",
        "previous": null,
        "count": 7,
        "total_pages": 2
    },
    "results": [
        {
            "id": 3,
            "payment": {
                "name": "Cash"
            },
            "bill_type": "EX",
            "usage": {
                "name": "Shopping"
            },
            "currency": {
                "name": "JPY"
            },
            "price": 500,
            "note": "note",
            "created_at": "2021-03-01T08:40:32.363454Z"
        }
    ]
}

POST /bills/

{
    "payment": {
        "name": ""
    },
    "bill_type": null,
    "usage": {
        "name": ""
    },
    "currency": {
        "name": ""
    },
    "price": null,
    "note": ""
}

Endpoint for bill summary

Purpose

An endpoint to return the bill summary information

Acceptance

  • Can see the summary information: total_expense and total_income
  • Can find the payment detail for all methods, for example Cash: -2700

Schema

{
    "summary": {
        "total_expense": 5400,
        "total_income": 300000
    },
    "payment_detail": [
        {
            "name": "Cash",
            "amount": -2700
        },
        {
            "name": "Credit Card",
            "amount": -1700
        },
        {
            "name": "Smart Bank",
            "amount": 299000
        }
    ]
}

Endpoint for the bill form information

Purpose

An endpoint to return the form parameters

Acceptance

  • Can get payment, usage, currency, bill_type parameters

Schema

GET /bill-info/

{
    "payment": [
        "Cash",
        "Credit Card",
        "Smart Bank"
    ],
    "usage": [
        "Salary",
        "Shopping",
        "House rent"
    ],
    "currency": [
        "JPY"
    ],
    "bill_type": [
        "Income",
        "Expense"
    ]
}

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.