Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Latest commit

History

History
66 lines (51 loc) 路 2.16 KB

File metadata and controls

66 lines (51 loc) 路 2.16 KB


REST API Country Data Lookup Service

GitHub is where people build software, learn and share ideas. In this project I am looking to learn things, i'm on the 2nd year of informatics engineering at the Polytechnic Institute of Bragan莽a and it is highly appreciated if you could contribute, please reach me out with a pull request.

馃搼 Supported Inputs

These are the supported parameters you can lookup for a country data:

  • ISO2 (PT, US, GB)
  • Dial Code (+351, +1, +44)
  • Name (Portugal, United States, United Kingdom)

馃捇 Usage

These are the supported requests following the previous supported inputs

馃挋 Request

{ "dial_code": "+351" }
{ "iso": "pt" }
{ "name": "portugal" }

馃挌 Response

{
  "lookup": [
    {
      "name": "Portugal",
      "dial_code": "+351",
      "code": "PT"
    }
  ]
}

The representation illustrated above is a POST request made in the following Vercel repository URL which is published publically.

GET methods are also supported, here's how to do it:

馃殌 Technologies

This project was built using the following technologies:

馃搫 Licensing

This repository is MIT licensed, as found in the LICENSE file.

Country Dial Lookup has no documentation, just this repository.