Skip to content

fork52/rx-codeforces-api-wrapper

Repository files navigation

rx-codeforces-api

A reactive api wrapper for codeforces api :)

At its core, the library uses Spring WebFlux's reactive web client to make api requests. This allows for a non-blocking, asynchronous usage.

It also uses Project Reactor's reactive streams to handle the responses.

Apache License Java Doc

Installation

Maven

The library is available on Maven Central. Maven Central Link.

To use it, add the following dependency to your pom.xml file:

Latest Version: 1.0.2

<groupId>io.github.fork52.rx-codeforces-api-wrapper</groupId>
<artifactId>rx-codeforces-api</artifactId>
<version>1.0.2</version>

Documentation

Usage

CodeforcesWebClient

The CodeforcesWebClient class is the main entry point for the library. It is used to make api requests to codeforces-api.

Example:

Mono<CFResponseList<User>> cfResponseListMono = codeforcesWebClient
    .getUserInfo(Arrays.asList("DmitriyH", "Fefer_Ivan"));

System.out.println(cfResponseListMono.block());

Formatting

Please make sure to follow Google CodeStyle before raising any pull requests.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Fork the repository and clone it to your local machine. Create a new branch for your feature.

git checkout -b my-new-feature