Git Product home page Git Product logo

covid-lambda's Introduction

Covid Cases API

The purpose of this project is to familiarize myself with some AWS Services like Lambda and API Gateway. I would not recommend using this API for production.

Demo

Demo of the API can be found here.

API Usage

Get All Cases

Endpoint: https://4j222wktag.execute-api.ap-southeast-1.amazonaws.com/dev/covid

$ curl https://4j222wktag.execute-api.ap-southeast-1.amazonaws.com/dev/covid

Response:

[
   {
      "country":{
         "name":"US",
         "latitude":40,
         "longitude":-100
      },
      "confirmed":432438,
      "deaths":14808,
      "active":0,
      "recovered":24125,
      "lastupdate":1586417611
   },
   {
      "country":{
         "name":"Spain",
         "latitude":40.463667,
         "longitude":-3.74922
      },
      "confirmed":148220,
      "deaths":14792,
      "active":85407,
      "recovered":48021,
      "lastupdate":1586417592
   },
   {
      "country":{
         "name":"Italy",
         "latitude":41.8719,
         "longitude":12.5674
      },
      "confirmed":139422,
      "deaths":17669,
      "active":95262,
      "recovered":26491,
      "lastupdate":1586417592
   },
...

Get Cases by Country

Endpoint: https://4j222wktag.execute-api.ap-southeast-1.amazonaws.com/dev/covid?country=Italy

$ curl https://4j222wktag.execute-api.ap-southeast-1.amazonaws.com/dev/covid?country=Italy

Response:

{
  "country":{
     "name":"Italy",
     "latitude":41.8719,
     "longitude":12.5674
  },
  "confirmed":139422,
  "deaths":17669,
  "active":95262,
  "recovered":26491,
  "lastupdate":1586417592
}

covid-lambda's People

Contributors

kenkoii avatar

Stargazers

 avatar

Watchers

 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.