Giter Club home page Giter Club logo

cardtest's Introduction

Design and implement a REST API to return a feed of "cards" - a simple JSON representation of the payload is sufficient

Cards can be of different types and include different values. Please implement the below logic:

 Daily quote card - will show a different quote every day. the list of quotes will be stored in the database or a file for this exercise. The card will include:
     Title - "Daily Quote"
     Message - the quote content. You can use "quote1", "quote2", "quote3" for the exercise.
     Author - the author of the daily quote. You can use "author1", "author2", etc.
 Status update card - will be used to show updates to customers. This card will include:
     Title - String - "Important Security Update"
     Icon - String - e.g. https://tinyurl.com/y5mdph2g
     Message - String - e.g. "For your security, we support 2 factor authentication, and would recommend that you turn it on."
     Button - String - e.g. "Got it, thanks"

Each card type can have multiple implementations

 Each implementation will allow for a pre-defined condition to determine whether the card should be presented to a given customer. E.g. if the number of seconds on the request timestamp is even, show. Else - do not show the card to this customer.

cardtest's People

Contributors

jnovotny avatar

Watchers

James Cloos avatar  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.