Coder Social home page Coder Social logo

django_assignment's Introduction

Assignment

Steps to run the project:

  1. Clone the repository locally.
  2. Change directory to the root directory of the project and build the image using docker build -t django-app . command.
  3. Run the Django app using docker container run --name web-app --network=host django-app command.

POST APIs:

  1. http://127.0.0.1:8000/api/finite_values_entity
  2. http://127.0.0.1:8000/api/numeric_entity

Docker image size = 119 MB

Assumptions:

  1. entity_type key (in values array) always has a valid value.

  2. values list does not contain duplicates.

  3. Each of the object/dict in the values array has the value key in it.

  4. support_multiple pick_first
    false false Output is always (False, False, "", {})
    false true ids_stated in params must be a string instead of a list.
    true false ids_stated must be a list of supported IDs passed in the values list. If all the values are invalid, params = {} (Concluded from the 1st POST API examples)
    true true ids_stated in params must be a string instead of a list. pick_first is given priority over support_multiple. (Concluded from the 2nd POST API examples)
  5. name, reuse, validation_parser and type are not required for the given problem statement.

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.