Skip to content

Janek1010/githubService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description of API

Click the link below to access the API documentation.

Swagger Documentation

Installation

To run the project, clone the repository and open it in an IDE (e.g. IntelliJ). Before running the project, ensure you build it using the following command:

mvn clean package

About project

This is a simple project that allows you to query GitHub users. In response, you'll receive information about their repositories that are not forks. Each repository includes details such as Repository Name, Owner login, and for each branch - name and the last commit SHA. Requests are made asynchronously using WebFlux.

Here's an example JSON response for one repository:

[
    {
        "name": "mines",
        "ownerLogin": "marsss",
        "branches": [
            {
                "name": "main",
                "sha": "7155aa7c2d68f7e8ab38abbed9ea22595441b32a"
            }
        ]
    }
]

Testing

Basic queries are provided in the requests.http file. You can also use Swagger to test the API (click the link above). Additionally, there are basic tests included in the project. Further tests are implemented in the program, you can verify the code quality by typing mvn clean package

Third-party APis

The project uses the GitHub API to retrieve information about users and their repositories. Documentation of two mainly used endpoints: https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-a-user https://docs.github.com/en/rest/branches/branches?apiVersion=2022-11-28#list-branches

Technologies

  • Java 21
  • Spring 6
  • Spring Boot 3
  • Maven
  • Lombok
  • Swagger
  • WebFlux

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages