Coder Social home page Coder Social logo

capofcave / lichess4j Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 215 KB

♟ A java wrapper for the https://lichess.org/ api

License: MIT License

Java 100.00%
java open-source library lichess lichess-api chess open-source-project api-library web-api-wrapper chess-api

lichess4j's Introduction

Hi there 👋

I'm Lars, a passionate software developer currently working as a Full Stack Software Engineer at Atruvia AG.


  • 🔭 I’m currently learning DevOps and programming languages that are not Java
  • 🔧 I’m also working on cuberdle, a wordle-inspired Rubik's Cube game written in plain Javascript Typescript.
  • 📫 How to reach me:

Top Langs

Views since May 2021

lichess4j's People

Contributors

capofcave avatar dependabot-preview[bot] avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lgtm-migrator

lichess4j's Issues

Specify Codecov requirements

With a test coverage pf almost 100%, codecov will fail as soon as a single instruction is missed in the tests.
A test coverage of 95-99% should be enough and a more reasonable balance of code quality and required resources.

This number should be enforced and displayed through a codecov.yml file

Add end-to-end tests

For each method from the public API, there should be one test case:

  • Mock the HTTP request, returning data from a json file that was copyed from the official api docs. (For file reading, the existing FileReaderUtil can be used.)
  • call the method that should be tested
  • verify that the result equals the result returned from the relevant TestProvider

Create a default value for the Title enum

When mapping an Account without title, null is returned. This should be replaced by the null object Title.NONE.

A generalized solution should be preferred since there will probably be more enums that should have a default value.

Make the API usable without a lichess api token

Many of the features of the lichess api are accessible without authorization
(see https://lichess.org/api#tag/OAuth for a complete list of endpoints that require authorization)

As such, the bearer Token should be nullable. In order to achieve that, any @nonnull annotations should be removed. Additionally, the HttpRequestFactory should not append the Authorization header if the bearerToken is null.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.