/Not-The-Library-Of-Babel

Small RESTful CRUD API using Spring Boot, Spring Data JPA (with many-to-many relation), H2. Deployed on Heroku. Shows my favourite Java books.

Primary LanguageJava

Not-The-Library-Of-Babel (under construction)

Do you know Borges' Library of Babel? If not then read what's his diabolically mathematical 😈 library:

− in Polish, or
− in English

Below I present the catalog of a library that for sure isn't The Library Of Babel − it's a small library of my favourite Java books. The catalog is available in a frame of the RESTful CRUD application, part of which is deployed on Heroku. The code deployed on Heroku may be found in repo at deploy branch (read only version), whereas the hole code (CRUD version) − at develop branch. Following Agile methodology and the rules of creating high quality code, each time I pushed the version of my application to my GitHub repository, I've ensured earlier that my application works.

The following endpoints are available on Heroku so far (the project isn't completed yet):

  • get all the books (together with their authors) from my library − the output is made using many-to-many relation between books and authors that is implemented in my project:

    https://heroku-library.herokuapp.com/v1/library/catalog

  • get some book (together with its authors) chosen at random:

    https://heroku-library.herokuapp.com/v1/library/catalog/random

  • get the book (together with its authors) placed under (e.g.) id = 1:

    https://heroku-library.herokuapp.com/v1/library/catalog/1

  • get the list of all authors that wrote a book appearing in my library:

    https://heroku-library.herokuapp.com/v1/library/authors

  • get some author chosen at random:

    https://heroku-library.herokuapp.com/v1/library/authors/random

  • get the author placed under (e.g.) id = 1:

    https://heroku-library.herokuapp.com/v1/library/authors/1

Fortunately, each time you use the catalog, you will obtain a finite json, in contrast to The Library Of Babel, that is ''so enormous that any reduction of human origin is infinitesimal''...