GET /newreleases

This returns all of the books that are currently being classed as new releases

Endpoint URL

http://127.0.0.1:8080/api/newreleases

Example code

const loadNewReleases = async () => {
    try {
        const response = await fetch("/api/newreleases");
        const books = await response.json();
        return books;
    } catch (error) {
        console.error("Error fetching new releases data:", error);
        throw error;
    }
};

Example response

{
    "_id": 27,
    "newrelease": true,
    "title": "ASP.NET 4.0 in Practice",
    "isbn": "1935182463",
    "pageCount": 504,
    "publishedDate": {
      "$date": "2011-05-15T00:00:00.000-0700"
    },
    "thumbnailUrl": "https://s3.amazonaws.com/AKIAJC5RLADLUMVRPFDQ.book-thumb-images/bochicchio.jpg",
    "shortDescription": "ASP.NET 4.0 in Practice contains real world techniques from well-known professionals who have been using ASP.NET since the first previews.",
    "longDescription": "ASP.NET is an established technology to build web applications using Microsoft products. It drives a number of enterprise-level web sites around the world, but it can be scaled for projects of any size. The new version 4.0 is an evolutionary step: you will find a lot of new features that you will be able to leverage to build better web applications with minimal effort.    ASP.NET 4.0 in Practice contains real world techniques from well-known professionals who have been using ASP.NET since the first previews. Using a practical Problem-Solution-Discussion format, it will guide you through the most common scenarios you will face in a typical ASP.NET application, and provide solutions and suggestions to take your applications to another level.",
    "status": "PUBLISH",
    "authors": [
      "Daniele Bochicchio",
      "Stefano Mostarda"
    ],
    "categories": [
      "Microsoft .NET"
    ],
    "favourited": false
}, .....

Response fields

Name
Type
Description

_id

integer

This is the identification number, which is unique to each specific book

newrelease

Boolean

A Boolean value to determine whether or not the book is a new release and would therefore show up in the new release section, value for all of these books is true

title

string

The title of the book

isbn

string

The International Standard Book Number for this specific book

pageCount

integer

The number of pages in the book, all pages are included

publishedDate

date

The date at which this copy of the book was first published

thumbnailUrl

string

Image URL for the thumbnail or cover of the book

shortDescription

string

A short description of the book, acting as a blurb

longDescription

string

A more extensive description which covers the major points of the book

status

string

Whether or not the book is currently published, so far all the books in the library are

authors

array of strings

An array of all authors who contributed to the book

categories

array of strings

The listed genres / categories of the book as all books are non-fiction at the moment

favourited

Boolean

Whether or not the book is a favourite for the user, as no identification system is being used, this is a global property

Last updated