Giter Site home page Giter Site logo

bsafe-rid's People

Contributors

1rohittiwari avatar goje87 avatar

Watchers

 avatar  avatar  avatar

bsafe-rid's Issues

PUT calls failing on rideInfo

PUT requests are failing when trying to update the rideInfo. Says Method PUT is not allowed by Access-Control-Allow-Methods.

This can be fixed by adding following line in app.js.

res.setHeader('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');

Stream of Page the GET calls on sensorData

GET action on sensorData crashes the server when the data set is huge (in MBs).

We would need to look at options like streaming the response or providing documents in pages.

Add Analysis and ranking system.

We would be needing something like cron job that analyses the (unanalyzed) rides and update it's list of violations and evaluated score.

And also would need an endpoint that would respond with score for given ride id or batch of ride ids.

Implement endpoints for following API flows

/rideInfo

  • POST: Creates a ride info document with default value for status as 'ongoing'.
  • PUT: Updates the ride info document.

/rideInfo/:rideId

  • GET: Retrieves the ride info object with rideId.

/sensorData

  • POST: Creates a sensor data document.

/sensorData/:rideId/

  • GET: Retrieves all the sensor data documents with rideId.

/sensorData/:rideId/:tagId

  • GET: Retrieves all the sensor data documents with rideId as well as tagId

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.