A Spring Boot application that fetches public GitHub user repositories along with their branches. Forked repositories are filtered out.
GET /github/{username}/repositories
[
{
"repositoryName": "my-repo",
"ownerLogin": "user123",
"branches": [
{
"name": "main",
"commitSha": "abc123"
}
]
}
]Includes integration tests using MockWebServer to mock GitHub API responses.
- Java 21
- Spring Boot 3.5
- RestTemplate
- Maven