GithubHelp home page GithubHelp logo

stock-watchlist's Introduction

Ktor Evaluation Task.

  1. Create two tables Watchlist and Recent Watchlist (Foreign key - id)

  2. Create watchlist service should insert into watchlist table and return the id as the response

  3. Update Recent watchlist service should insert into the recent watchlist table for that particular account Id only if is_active column is true in the watchlist table

  4. Delete watchlist service should update isActive column as false in the watchlist table and also it should look into the recent watchlist table if that id exists, then it should get replaced with the last updated watchlist id from the watchlist table. if that account id doesn't have any other watchlist, then update the recent watchlist id as null for that account id.

Note:

  1. Write Unit test cases also
  2. Handle exception cases

API END POINTS:

  1. whatchlist/insert - to insert a watchlist

    request -> {"accountId": 1000, "stockSymbol": "MSFT", "isActive": true}

  2. watchlist/delete/{id} - to delete a watchlist by id

  3. watchlist/ -> to get all watchlist

  4. watchlist/recent -> to get all recent watchlist

  5. watchlist/recent_table -> Get all recent watchlists with null values in the foreign key

stock-watchlist's People

Contributors

venkata-ram 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.