Skip to content

AnthonySinitsa/capital-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

capital-finder

Example Links

Overview

This serverless function provides information about countries and their capitals based on user queries. It's built using Python's http.server module and utilizes data from the Rest Countries API.

Usage

Sending GET Requests

To retrieve information about a country or its capital, send a GET request to the serverless function with the following parameters:

  • country: To get the capital of a specific country.
  • capital: To get the country associated with a specific capital.

Example

GET /?country=France

This request will return the capital of France.

GET /?capital=Paris

This request will return the country accosiciated with the capital Paris.

About

💾Serverless function about countries/capitals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages