{"id":18538469,"url":"https://github.com/bryanbill/ip-manager","last_synced_at":"2026-04-13T11:01:53.684Z","repository":{"id":199948613,"uuid":"704162616","full_name":"bryanbill/ip-manager","owner":"bryanbill","description":"The IP Manager API is a Java Spring Boot application that allows you to manage IP addresses and perform various operations related to IP address allocation and subnet calculations.","archived":false,"fork":false,"pushed_at":"2023-10-12T17:11:05.000Z","size":82910,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T02:12:15.486Z","etag":null,"topics":["java","mysql","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bryanbill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-12T17:04:06.000Z","updated_at":"2023-10-12T17:06:44.000Z","dependencies_parsed_at":"2023-10-14T17:41:42.421Z","dependency_job_id":null,"html_url":"https://github.com/bryanbill/ip-manager","commit_stats":null,"previous_names":["bryanbill/ip-manager"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bryanbill/ip-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fip-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fip-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fip-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fip-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bryanbill","download_url":"https://codeload.github.com/bryanbill/ip-manager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Fip-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31749763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","mysql","springboot"],"created_at":"2024-11-06T19:43:53.081Z","updated_at":"2026-04-13T11:01:53.669Z","avatar_url":"https://github.com/bryanbill.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# IP Manager API\n\nThe IP Manager API is a Java Spring Boot application that allows you to manage IP addresses and perform various operations related to IP address allocation and subnet calculations.\n\n## Table of Contents\n\n- [Features](#features)\n- [Prerequisites](#prerequisites)\n- [Getting Started](#getting-started)\n  - [Running the Application](#running-the-application)\n- [Endpoints](#endpoints)\n  - [IP Address Endpoints](#ip-address-endpoints)\n  - [Subnet Calculator Endpoint](#subnet-calculator-endpoint)\n- [Authentication](#authentication)\n- [Contributing](#contributing)\n\n## Features\n\n- Allocate and deallocate IP addresses\n- List allocated and available IP addresses\n- Perform subnet calculations\n\n## Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n- Java Development Kit (JDK) 21 or later installed\n- Docker installed (optional, for Docker deployment)\n- MySQL database accessible (for database storage)\n\n## Getting Started\n\n### Running the Application\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://bitbucket.org/brianbill/ip-management-tool.git\n   ```\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd ip-manager-tool\n   ```\n\n3. Run the Docker Compose file to start the MySQL database:\n\n   ```bash\n   docker-compose up -d --build\n   ```\n\nThe application will be accessible at [http://localhost:8080](http://localhost:8080).\n\n## Endpoints\n\n### IP Address Endpoints\n\n- **GET /ip/allocated**: Get a list of all allocated IP addresses.\n```bash\ncurl --location 'http://localhost:8080/ip/allocated?startIp=192.168.1.10\u0026endIp=192.168.1.20' \\\n--header 'Authorization: Basic YWRtaW46YWRtaW4='\n```\n- **GET /ip/available**: Get a list of all available (unallocated) IP addresses.\n```bash\ncurl --location 'http://localhost:8080/ip/available?startIp=192.168.1.10\u0026endIp=192.168.1.20' \\\n--header 'Authorization: Basic YWRtaW46YWRtaW4='\n```\n- **POST /ip/allocate**: Allocate a new IP address.\n```bash\ncurl --location 'http://localhost:8080/ip/allocate' \\\n--header 'Content-Type: application/json' \\\n--header 'Authorization: Basic YWRtaW46YWRtaW4=' \\\n--data-raw '{\n    \"name\": \"John Doe\",\n    \"email\": \"bill@email.com\"\n}'\n```\n- **Release IP /ip/release/{ipAddress}**: Deallocate the specified IP address.\n```bash\ncurl --location --request PUT 'http://localhost:8080/ip/release/192.168.1.1' \\\n--header 'Authorization: Basic YWRtaW46YWRtaW4=' \n```\n\n### Subnet Calculator Endpoint\n\n- **GET /subnet/calculate**: Calculate details of an IP subnet.\n    - Query Parameters: `ip` (IP address), `subnetMask` (Subnet mask)\n```bash\ncurl --location 'http://localhost:8080/subnet/calculate?ip=192.168.1.10\u0026subnetMask=255.255.255.0' \\\n--header 'Authorization: Basic YWRtaW46YWRtaW4='\n```\n\n## Authentication\n\nThe API uses Basic Authentication. Provide your username and password with each request.\n\n## Contributing\n\nTo contribute to the project, follow these steps:\n\n1. Fork the repository.\n2. Create a new branch: `git checkout -b feature/your-feature`.\n3. Commit your changes: `git commit -m 'Add some feature'`.\n4. Push to the branch: `git push origin feature/your-feature`.\n5. Submit a pull request.\n\n## API Documentation\n\nImport the [Postman collection](https://api.postman.com/collections/6268985-cbdd943b-f6ad-4fcd-961f-052aa92f3f99?access_key=PMAT-01HBQY46AWD3K9CPNG2ABAWMF4) to view the API documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanbill%2Fip-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbryanbill%2Fip-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanbill%2Fip-manager/lists"}