<commit_before>FORMAT: 1A
HOST: https://localhost:3000/api

# Books

Books API is a simple API allowing consumers to post, get, update, and delete collection of books; as well as tagging the owners. You can view this documentation over at [Apiary](http://docs.super-books.apiary.io).

# Books API Root [/]

This resource does not have any specific attributes. Instead it offers the initial API affordances in the form of the links in the JSON body.

It is recommend to follow the "url" link values, [Link](https://tools.ietf.org/html/rfc5988) or "Location" headers where applicable to retrieve resources. Instead of constructing your own URLs, to keep your client decoupled from implementation details.

## Retrieve the Entry Point [GET]

+ Response 200 (application/json)

        {
          "auth_url": "/auth",
          "accounts_url": "/accounts",
          "books_url": "/books"
        }

## Group Book

Resources related to books in the API.

## Collection [/books{?page}]

+ Parameters
  + page: 1 (optional, number) - The page of books to return.

### Get List of All Books [GET]

+ Response 200 (application/json)

    + Headers

            Link: </books?page=1>; rel="next"

    + Body

            [
              {<commit_msg>More detailed Entry Point of Super Books API<commit_after>FORMAT: 1A
HOST: https://books.mhaidarhanif.com

# Super Books API

Super Books API is a simple API allowing consumers to post, get, update, and delete collection of books; as well as tagging the owners. You can view this documentation over at [Apiary](http://docs.superbooks.apiary.io).

# Books API Root [/]

This resource does not have any specific attributes. Instead it offers the initial API affordances in the form of the links in the JSON body.

It is recommend to follow the "url" link values, [Link](https://tools.ietf.org/html/rfc5988) or "Location" headers where applicable to retrieve resources. Instead of constructing your own URLs, to keep your client decoupled from implementation details.

## Retrieve the Entry Point [GET]

+ Response 200 (application/json)

        {
          "name": "Books API",
          "documentation": "https://github.com/mhaidarh/workshop-js",
          "bookModel": {
            "isbn": "Number",
            "title": "String",
            "price": "Number",
            "owners": [ "Number" ],
            "publishedAt": "Date",
            "createdAt": "Date",
            "updatedAt": "Date"
          },
          "endpoints": {
            "auth": "/auth",
            "accounts": "/accounts",
            "books": {
              "GET":    "/books",
              "GET":    "/books/{isbn}",
              "POST":   "/books",
              "PUT":    "/books/{isbn}",
              "DELETE": "/books/{isbn}"
              "DELETE": "/books"
            }
          }
        }


## Group Book

Resources related to books in the API.

## Collection [/books{?page}]

+ Parameters
  + page: 1 (optional, number) - The page of books to return.

### Get List of All Books [GET]

+ Response 200 (application/json)

    + Headers

            Link: </books?page=1>; rel="next"

    + Body

            [
              {
{'fraction_non_alphanumeric': 0.11697755295605437, 'fraction_numerical': 0.0094846664558963, 'mean_word_length': 2.3767342582710778, 'pattern_counts': {'":': 23, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6109715', 'n_tokens_mistral': 908, 'n_tokens_neox': 862, 'n_words': 334}