Giter Site home page Giter Site logo

djangopiplin's Introduction

samplewebapp

Sample Django Web App

Design and Architecture

Database Schema

DB Schema Diagram

Events Diagram

Version 1 (Implemented Here)

Assumes that PDF Generation and Upload does not consume much time. Events Diagram

Version 2 (Asynchronous)

Assumes that PDF Generation and Upload will consume time because of large data and hence it is handled asynchronously. Events Diagram Queue is AWS SQS.

API Specifications

GET Candidates Data

GET api/v1/candidates?pageId=<page_id>

Returns the list of interview candidates in the batch of 10s.

Response Object

Status Code 200

[
  {
    "fullName": "Rajat",
    "aadharId": "123456789",
    "dateOfBirth": "01/01/2000",
    "state": "Delhi",
    "pincode": "123456",
    "gender": "Male",
    "email": "[email protected]",
    "primaryPhone": 91123456789,
    "otherPhone": 91123456789,
    "address": "hno.1, My City, Town",
    "longitude": -77, 
    "latitude": 38
  },
  {
    ...
  }
]

Status Code !200

{
  "Error": "Error Message"
}
Response Codes

TODO

POST New Candidates

POST api/v1/candidates

Add new candidates to the DB. This endpoint supports multiple uploads.

Request Object
[
  {
    "fullName": "Rajat",
    "aadharId": "123456789",
    "dateOfBirth": "01/01/2000",
    "state": "Delhi",
    "pincode": "123456",
    "gender": "Male",
    "email": "[email protected]",
    "primaryPhone": 91123456789,
    "otherPhone": 91123456789,
    "address": "hno.1, My City, Town",
    "longitude": -77, 
    "latitude": 38,
    "experience": 4,
    "skills": ["python", "postgresql"],
    "education": [
      {
        "board": "CBSE", 
        "level": "12",
        "specialization": "PCM",
        "yearOfPassing": 2010,
        "institute": "ABC School"
      },
      {
        "board": "NA", 
        "level": "BTech",
        "specialization": "Computer Science",
        "yearOfPassing": 2014,
        "institute": "ABC University"
      }
    ]
  },
  {
    ...
  }
]
Response Object

Status Code 200

{
  "totalSuccessful": 10,
  "totalFailed": 2,
  "failedUploads": [
    {
      "reason": "Failure Reason",
      "data": {
        "fullName": "Rajat",
        "aadharId": "123456789",
        "dateOfBirth": "01/01/2000",
        "state": "Delhi",
        "pincode": "123456",
        "gender": "Male",
        "email": "[email protected]",
        "primaryPhone": 91123456789,
        "otherPhone": 91123456789,
        "address": "hno.1, My City, Town",
        "longitude": -77, 
        "latitude": 38,
        "experience": 4,
        "skills": ["python", "postgresql"],
        "education": [
          {
            "board": "CBSE", 
            "level": "12",
            "specialization": "PCM",
            "yearOfPassing": 2010,
            "institute": "ABC School"
          },
          {
            "board": "NA", 
            "level": "BTech",
            "specialization": "Computer Science",
            "yearOfPassing": 2014,
            "institute": "ABC University"
          }
        ]
      }
    },
    {
      ...
    }
  ]
}

Status Code !200

{
  "Error": "Error Message"
}
Response Codes

TODO

GET Candidate Resume

GET api/v1/resume?candidateId=<candidate_id>

Returns FileResponse of Candidate's Resume.

Response Object

Status Code 200

StreamingHttpResponse Object

Status Code !200

{
  "Error": "Error Message"
}
Response Codes

TODO

djangopiplin's People

Contributors

rajatdevsharma avatar manojcbu 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.