Topic: Extensive API RESTful documentation for a book lending/borrowing app.

For the topic above, write the http request attributes and queries parameters of a book lending/borrowing app. Also, add list of ressources with their attributes.
Here is an extensive API RESTful documentation for a book lending/borrowing app:

**HTTP Request Attributes**

* **HTTP Methods**:
	+ GET: Retrieve a resource
	+ POST: Create a new resource
	+ PUT: Update an existing resource
	+ DELETE: Delete a resource
* **HTTP Status Codes**:
	+ 200 OK: Request successful
	+ 201 Created: Resource created successfully
	+ 400 Bad Request: Invalid request
	+ 401 Unauthorized: Authentication failed
	+ 404 Not Found: Resource not found
	+ 500 Internal Server Error: Server error
* **Request Headers**:
	+ `Content-Type`: `application/json`
	+ `Authorization`: `Bearer <access_token>` (for authenticated requests)

**Query Parameters**

* **Pagination**:
	+ `page`: The page number to retrieve (default: 1)
	+ `per_page`: The number of items per page (default: 10)
* **Filtering**:
	+ `title`: Filter books by title
	+ `author`: Filter books by author
	+ `genre`: Filter books by genre
	+ `status`: Filter books by lending status (available, borrowed, etc.)
* **Sorting**:
	+ `sort_by`: The field to sort by (e.g. title, author, publication_date)
	+ `order`: The sort order (asc or desc)

**Resources**


Request Attributes:
- URL: /books/borrow
- Method: POST
- Body: {
  book_id: <book id>,
  member_id: <member id>,
  duration: <duration in days>
}

Query Parameters:
- URL: /books/borrow
- Parameter: duration
- Value: <duration in days>

Resources:
- Book (Attributes):
    id: <book id>,
    title: <book title>,
    author: <author name>,
    genre: <book genre>,
    description: <book description>,
    image: <book image>,
    rating: <book rating>

- Member (Attributes):
    id: <member id>,
    name: <member name>,
    email: <member email>,
    age: <member age>,
    address: <member address>,
    phone_number: <member phone number>

- Loan (Attributes):
    book_id: <book id>,
    member_id: <member id>,
    duration: <duration in days>