Module covid19

ballerinax/covid19 Ballerina library

1.5.2

Overview

The Novel COVID-19 API v3.0.0 connector(https://disease.sh/docs/) OpenAPI Specification.

Ballerina connector for COVID-19 provides easy access to latest COVID-19 related data across the world. Please refer to API documentation for more detail.

Key Features

  • Programmatic access to create and manage resources via REST API
  • Seamless integration with REST API endpoints
  • Support for standard HTTP methods and JSON responses

Quickstart

To use the COVID-19 connector in your Ballerina application, update the .bal file as follows:

Step 1: Import connector

Copy
import ballerinax/covid19

Step 2: Create a new connector instance

Copy
covid19:Client covid19Client = check new ();

Step 3: Invoke connector operation

  1. Get COVID-19 status by country
Copy
public function main() {
    covid19:CovidCountry statusByCountry = check covid19Client->getStatusByCountry("sri lanka");
}
  1. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/covid19;Copy

Other versions

See more...

Metadata

Released date: 2 days ago

Version: 1.5.2

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.8.0

GraalVM compatible: Yes


Pull count

Total: 78620

Current verison: 12


Weekly downloads


Source repository


Keywords

Type/Connector

Vendor/COVID-19 API

Area/Productivity & Collaboration

Lifestyle & Entertainment/News & Lifestyle

Cost/Free


Contributors