Coder Social home page Coder Social logo

cowin-apis's Introduction

Cowin-Extended-Api

Purpose:

To return the avaliable slots for the given pincode,date and age group in request.

Launguage:

Python,Flask,SqlAlchemy,Heroku PostgreSQL.

Implementation:

1.Create a virtual env in your system.
2.Clone the reposirtory inside your venv project folder.
3.Run the project and install required modules.
4.Generate a token by passing username in request param by using END point (/user/generate/token).
5.Add 'x-access-token' in the header of the request to return the data.
6.Use END-point(/api/v1/get/vaccine/slots/all_age) to return the response of the given request.

Sample

Request:

{
    "pincode": "228001",
    "date": "26-07-2021",
    "age":"18+" 
}

Add header as shown below(point no.5)

jwt

Response:

{
    "slots": [
        {
            "dose1": 0,
            "dose2": 6,
            "max_age": 80,
            "min_age": 18,
            "place": "DMH Ayush Wing COVAXIN",
            "vaccine": "COVAXIN"
        },
        {
            "dose1": 0,
            "dose2": 5,
            "max_age": 80,
            "min_age": 18,
            "place": "Bhadaiyan CHC",
            "vaccine": "COVISHIELD"
        }
    ]
}

cowin-apis's People

Contributors

exrishu 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.