GithubHelp home page GithubHelp logo

datagovsg / beeline-server Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 3.0 1.53 MB

The backend service for Beeline

Home Page: https://api.beeline.sg/

License: MIT License

HTML 1.40% JavaScript 98.24% Shell 0.32% Dockerfile 0.04%

beeline-server's People

Contributors

joelchoo avatar lonerifle avatar miazima avatar prestonlimlianjie avatar shenxujing avatar xkjyeah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

beeline-server's Issues

Route queries should be paginated

The mobile app and admin panel currently requires all routes to be returned at /routes and friends. The former leads to significant capacity problems, which in-process caching has not been able to redress completely.

/routes should hence support page parameters to limit what is brought in. These parameters should be optional so that we can introduce pagination gradually. Support for text search must also be considered, since the mobile app requires this but currently performs full-text search on the entire population that it gets from /routes

Missing config.js

The readme talks about updating the config.js. However, I was unable to locate the same. Going by the previous commits, it seems that the config.js was removed during the commit dated 8 Jan 2019. Would it be possible to modify the ReadMe accordingly. Thanks

Categorise endpoints as commuter, admin or both

As of now, Swagger doesn't easily describe which endpoints are meant for the commuter app, and which are for admin purposes. This makes it cumbersome for external parties and others in future to work out which endpoints matter when building things out.

Tag all the endpoints in Swagger as commuter, admin, or both the tags. They can then be filtered by specifying the tag, eg, https://api.beeline.sg/?tags=commuter.

Commuter endpoints are easily identified by looking at beeline-frontend and the requests it makes

allow csv dumps of route pass transactions

/transaction_items/route_passes allows programmatic access to transactions relating to route passes, but csv dumps are needed for human consumption. Provide an equivalent endpoint for this, studying /transaction_items to see how csv dumps are handled there

Route pass expiry dates should be enforced at fixed number of days from purchase

Route passes are meant to have an expiry date per the standard terms and conditions we give to all companies, but this is not strictly enforced. This now has to be done so that financial reporting remains manageable.

Add a new expiresAt column to the route pass, and ensure that this is populated when a route pass is created. Modify the job that expires route passes to inspect this new field.

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.