Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 518 Bytes

Readme.md

File metadata and controls

18 lines (12 loc) · 518 Bytes

Country IP

A simple api written with .net that exposes 2 endpoints

Description

The two endpoints are :

  • GET /countries/:ip that reponds with info of the country the ip belongs to.
  • POST /countries/reports that responds with the available ips per country given an array of country codes.

The api also uses in-memmory cache to save responses for some time to speed up the requests and updates the info in the database by using an external source every one hour.

Executing program

dotnet run