{"id":48321479,"url":"https://github.com/bunnystring/infra-api-gateway","last_synced_at":"2026-04-05T00:41:33.506Z","repository":{"id":316421102,"uuid":"1061482335","full_name":"bunnystring/infra-api-gateway","owner":"bunnystring","description":"serves as the single entry point for the InfraGest micro services architecture.","archived":false,"fork":false,"pushed_at":"2025-11-02T06:47:34.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-02T08:27:51.914Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bunnystring.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-22T01:22:38.000Z","updated_at":"2025-11-02T06:47:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"a74833a1-bb64-4075-bc41-e7e67cf93354","html_url":"https://github.com/bunnystring/infra-api-gateway","commit_stats":null,"previous_names":["bunnystring/infra-api-gateway"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bunnystring/infra-api-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunnystring%2Finfra-api-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunnystring%2Finfra-api-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunnystring%2Finfra-api-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunnystring%2Finfra-api-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bunnystring","download_url":"https://codeload.github.com/bunnystring/infra-api-gateway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunnystring%2Finfra-api-gateway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31420683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T00:25:07.052Z","status":"ssl_error","status_checked_at":"2026-04-05T00:25:05.923Z","response_time":60,"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":[],"created_at":"2026-04-05T00:41:32.924Z","updated_at":"2026-04-05T00:41:33.500Z","avatar_url":"https://github.com/bunnystring.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Infra API Gateway\n\nInfra API Gateway is the entry point and central routing service for your microservices architecture.  \nIt handles request forwarding, authentication, error handling, and integration with service discovery (Eureka).\n\n---\n\n## Features\n\n- **Routing:** Forwards requests to the correct backend services based on path.\n- **Authentication:** JWT validation and security filters.\n- **Error Handling:** Centralized error responses for clients.\n- **Service Discovery:** Integrates with Eureka for dynamic routing.\n- **Configurable:** Properties managed via `application.properties` or remote Config Server.\n- **Health Monitoring:** Exposes health endpoints for observability.\n\n---\n\n## Getting Started\n\n### Prerequisites\n\n- **Java 17** (required)\n- **Maven** (for building)\n- (Optional) **Eureka Server** for service discovery\n\n---\n\n## Configuration Reference\n\nBelow is an example of a typical `application.properties` configuration for Infra API Gateway:\n\n```properties\n# Application Name\nspring.application.name=infra-api-gateway\n\n# Microservice Port (API Gateway)\nserver.port=8080\n\n# Eureka Service Discovery Configuration\neureka.client.service-url.defaultZone=http://eureka-server:8761/eureka/\neureka.instance.prefer-ip-address=true\n\n# Route Configuration for Microservices\nspring.cloud.gateway.routes[0].id=notifications-service\nspring.cloud.gateway.routes[0].uri=lb://notifications-service\nspring.cloud.gateway.routes[0].predicates[0]=Path=/notifications/**\n\nspring.cloud.gateway.routes[1].id=orders-service\nspring.cloud.gateway.routes[1].uri=lb://orders-service\nspring.cloud.gateway.routes[1].predicates[0]=Path=/orders/**\n\nspring.cloud.gateway.routes[2].id=groups-service\nspring.cloud.gateway.routes[2].uri=lb://groups-service\nspring.cloud.gateway.routes[2].predicates[0]=Path=/groups/**\n\nspring.cloud.gateway.routes[3].id=employees-service\nspring.cloud.gateway.routes[3].uri=lb://employees-service\nspring.cloud.gateway.routes[3].predicates[0]=Path=/employees/**\n\n# JWT Secret Key (HS256)\njwt.secret=nE1eKf/1G7A3WjYzQw1g4QwqFvJKk6o5Wfjh9n6N7sM=\n\n# Disable Spring Cloud Config\nspring.cloud.config.enabled=false\n\n# Global Timeout for Routes\nspring.cloud.gateway.httpclient.connect-timeout=5000\nspring.cloud.gateway.httpclient.response-timeout=5s\n\n# Health Endpoint Details\nmanagement.endpoint.health.show-details=always\n```\n\n---\n\n## Build and Run\n\nTo build the project:\n\n```bash\nmvn clean package\n```\n\nTo run the gateway:\n\n```bash\njava -jar target/infra_api-gateway-0.0.1-SNAPSHOT.jar\n```\n\n---\n\n## Contributing\n\nFeel free to open issues or pull requests for improvements or bug fixes.  \nSee the [Pull Request template](.github/PULL_REQUEST_TEMPLATE.md) for guidance.\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\n## Contact\n\nFor questions or support, open an issue or contact [bunnystring](https://github.com/bunnystring).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbunnystring%2Finfra-api-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbunnystring%2Finfra-api-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbunnystring%2Finfra-api-gateway/lists"}