> For the complete documentation index, see [llms.txt](https://james-harvey.gitbook.io/api-reference-index/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://james-harvey.gitbook.io/api-reference-index/api-documentation-home.md).

# API Documentation - Home

## James Harvey's Online Library

This is the documentation for any `GET`, `POST` and `DELETE` methods that have been implemented in my Online Library single-page app. There is a library of around 130 books which can be added to removed from and viewed using this website which needs to be hosted on a local machine using  `Node.js`. The source code can be downloaded from:&#x20;

<https://github.com/Jamwilltim/Online-Library-Single-Page-App>

Make sure to follow the setup instructions in the `README.md` file

To preface, all API links start with a `/api/...`this is to distinguish them from any pages in the actual website, if you are experiencing a fetch error this could be the issue

## Books

{% content-ref url="/pages/EXiyOnS5vRVilcTrLtON" %}
[GET /books](/api-reference-index/books/get-books.md)
{% endcontent-ref %}

{% content-ref url="/pages/DODW1HdNnh6rtloaNrhk" %}
[GET /books/length](/api-reference-index/books/get-books-length.md)
{% endcontent-ref %}

{% content-ref url="/pages/9FLguQQ5AahrOZUjHfUD" %}
[GET /books/:id](/api-reference-index/books/get-books-id.md)
{% endcontent-ref %}

{% content-ref url="/pages/Ohc1i58Ia1bJGmV6PFVr" %}
[GET /books/:id/reviews](/api-reference-index/reviews/get-books-id-reviews.md)
{% endcontent-ref %}

{% content-ref url="/pages/kmG8wKrGmsX6kZePtjFs" %}
[GET /favourites](/api-reference-index/books/get-favourites.md)
{% endcontent-ref %}

{% content-ref url="/pages/6dJCOnnHLh5lrrL2ru2O" %}
[GET /newreleases](/api-reference-index/books/get-newreleases.md)
{% endcontent-ref %}

{% content-ref url="/pages/ctG8Ylc1ruaiuZkFtljf" %}
[GET /search](/api-reference-index/books/get-search.md)
{% endcontent-ref %}

{% content-ref url="/pages/gqwdn774korqHKgaNZ7M" %}
[DELETE /books/:id](/api-reference-index/books/delete-books-id.md)
{% endcontent-ref %}

{% content-ref url="/pages/442ehu8qswUDdyVSLRRB" %}
[POST /books](/api-reference-index/books/post-books.md)
{% endcontent-ref %}

{% content-ref url="/pages/Ru2d39yKo2TiDEzbsQp1" %}
[POST /updateFavourite/:id](/api-reference-index/books/post-updatefavourite-id.md)
{% endcontent-ref %}

## Reviews

{% content-ref url="/pages/Oj5peQbiw85eFI2crsch" %}
[GET /reviews](/api-reference-index/reviews/get-reviews.md)
{% endcontent-ref %}

{% content-ref url="/pages/Y1YcqPGKGagbmZKe5NAq" %}
[POST /reviews](/api-reference-index/reviews/post-reviews.md)
{% endcontent-ref %}

{% content-ref url="/pages/2PGqjK9MqQHytGJCTtzT" %}
[DELETE /reviews/:id](/api-reference-index/reviews/delete-reviews-id.md)
{% endcontent-ref %}
