Skip to content

Service for searching information about ip (country, organization).

Notifications You must be signed in to change notification settings

hightemp/ip_info_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ip_info_service

Service for searching information about ip in local database (country, organization).

API Endpoints

1. Lookup IP Information

GET /lookup?ip=<ip_address>
curl "http://localhost:8080/lookup?ip=8.8.8.8"

2. Add Country Range

POST /ranges/add/country
curl -X POST "http://localhost:8080/ranges/add/country" \
-H "Content-Type: application/json" \
-d '{
"ip_start": "192.168.0.0",
"ip_end": "192.168.255.255",
"name": "RU"
}'

3. Add Organization Range

POST /ranges/add/organization
curl -X POST "http://localhost:8080/ranges/add/organization" \
-H "Content-Type: application/json" \
-d '{
"ip_start": "8.8.8.0",
"ip_end": "8.8.8.255",
"name": "Google"
}'

About

Service for searching information about ip (country, organization).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published