ballerinax/worldbank Ballerina library

1.5.2

Overview

The World Bank API v2 connector(https://datahelpdesk.worldbank.org/knowledgebase/articles/898599-indicator-api-queries) OpenAPI Specification.

The World Bank Indicators API provides access to nearly 16,000 time series indicators. Most of these indicators are available online through tools such as Databank and the Open Data website. The API provides programmatic access to this same data. Many data series date back over 50 years, and can be used to create interesting applications.

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 WorldBank connector in your Ballerina application, update the .bal file as follows:

Step 1: Import connector

Copy
import ballerinax/worldbank

Step 2: Create a new connector instance

Copy
worldbank:Client worldbankClient = check new ();

Step 3: Invoke connector operation

  1. Get current population data by country.
Copy
public function main() {
    worldbank:CountryPopulation[] populationDetails = check worldbankClient->getPopulationByCountry(country_code="LKA" ,date="2000");
    int population = <int>populationDetails[0]?.value;
}
  1. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/worldbank;Copy

Other versions

See more...

Metadata

Released date: 4 days ago

Version: 1.5.2

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.8.0

GraalVM compatible: Yes


Pull count

Total: 57541

Current verison: 0


Weekly downloads


Source repository


Keywords

Type/Connector

Vendor/World Bank

Area/Developer Tools

Business Intelligence/Analytics

Cost/Free


Contributors