Skip to content

Get IP Address details asynchronously from IPStack. Saving in SQL Server database and in .NET MemoryCache. Using Entity Framework. Moq Used for Unit Testing.

NigelCusc/IPConsumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPConsumer Web API

Built with .NET Core 5.0

Consists of:

  • Common - Library Project holding common models.
  • IPLibrary - Library Project to consume service from IPStack.
  • API - Web API project with IPManagerController. Functionality includes:
    • [GET] Details/{ip}: Get IP Details from Memory Cache, Our Repository, or IPStack.
    • [GET] GetDetailsFromDB: Get List of IP details from Database.
    • [GET] GetDetailsFromDB/{ip}: Get IP details from Database by IP.
    • [POST] BatchUpdateWithProgressReport: Update IP details records in bulk. Separate thread to be created. GUID returned.
    • [GET] BatchUpdateProgress: Read task progress report by Guid.
  • API.UnitTests - Unit Test Project consisting of tests for IPManagerService.

Required Steps:

  • Update connection string and IPStack access key in appsettings.Development.json

About

Get IP Address details asynchronously from IPStack. Saving in SQL Server database and in .NET MemoryCache. Using Entity Framework. Moq Used for Unit Testing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages