GithubHelp home page GithubHelp logo

bank-api's People

Watchers

 avatar  avatar

bank-api's Issues

Permission database

Not sure about specifics. Have permission ID which is referenced by users table. Edit as more ideas arrive

Error handler

Make an error handler to return consistent errors, (perhaps in JSON) and to do logging if it is required. This can coexist with a config getter (ie., time zone, bank name, currency symbol server)

Too grand a project:

It'd be cool if there was some fancy statistics thing that would notice dodgy errors (potential attacks_

Transaction list returnables

Exactly what is returned in a list of transactions needs work. For example:

  • Is it ok that the user can see the other participant's account id?
  • Does it return enough information so that clients can tell whether it is a debit or a credit, for any type of account (ie., loan/saving)
  • What about money coming in from other banks? That's a whole lot of zero from accounts.
  • The same about money leaving the bank.

figure out how interest will work

Will I just add interest at some point based on what is in the account? Or pro-rata? Either way, figure this out, and then implement it.

Allow uncleared money

When you deposit money at an ATM, the money is immediately reflected, but it is "unavailable". Add functionality to keep track of that money which is not cleared. Add a permission that allows a member of staff to clear money. (given to bean counters)

some users functions

  • Change password
  • lock account
  • add some profile info:
    • email address
    • permission set (CSV - permission ID from permissions table [Issue #3])
    • etc

Model error checking

These functions need to be more aware of their errors, and return a status code: (true, false)

  • user::set_lockstate
  • user::change_psw
  • more!

accounts->balance

Write this API function to see what the balance was at some optionally given timestamp, for a given account. This will be used by accounts->index to show current balances.
If no timestamp given, function returns current balance.

add account types table

So that accounts have types, such as "Student current" or "Fixed deposit" and later on we can add conditions to this in Milestone 0.4-alpha.
Just named for now.

Is it ok that accounts are discoverable?

Problem

Any user can discover aids that exist, because non-existent account return 404, while accounts not belonging to that user return 403. By querying all integer account ids, a user can figure out all the account ids in the database.

Potential Fix

Just return a 403 (access denied) error for all accounts which either do not exist, or are not owned by the user.

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.