api
Novel

Documentation

1. Get List of Novel Categories

Endpoint:

GET https://api.i-as.dev/api/novel/category

Response:

Returns a list of available novel categories.

[
  {
    "categorySlug": "string",
    "categoryName": "string"
  }
  // More data
]

Fields:

  • categorySlug: The slug for the category (used for accessing the category list).
  • categoryName: The name of the category (e.g., Fantasy, Romance).

2. Get List of Novels in a Category

Endpoint:

GET https://api.i-as.dev/api/novel/list/:categorySlug

Parameters:

  • categorySlug: The slug of the category (e.g., fantasy, romance).
  • Optional:
    • page={value}: Page number for pagination.
    • limit={value}: Limit the number of results per page (e.g., limit=20).

Response:

[
  {
    "id": "string",
    "slug": "string",
    "title": "string",
    "author": "string",
    "category": "string",
    "image": "url-img",
    "date": "string"
  }
  // More data
]

3. Get Novel Details

Endpoint:

GET https://api.i-as.dev/api/novel/detail/:slugList

Parameters:

  • slugList: The slug of the novel list (e.g., novel-title-1).

Response:

{
  "title": "string",
  "author": "string",
  "category": "string",
  "image": "url-img",
  "description": "string",
  "chapters": [
    {
      "chapterSlug": "string",
      "chapterTitle": "string"
    }
    // More data
  ]
}

4. Get Chapters of a Novel

Endpoint:

GET https://api.i-as.dev/api/novel/chapter/:detailSlug

Parameters:

  • detailSlug: The slug of the novel details (e.g., novel-title-1).
  • Optional:
    • page={value}: Page number for pagination.
    • limit={value}: Limit the number of chapters per page (e.g., limit=20).

Response:

[
  {
    "chapterSlug": "string",
    "chapterTitle": "string",
    "content": "string"
  }
  // More data
]

Example Usage

Get a List of Categories:

GET https://api.i-as.dev/api/novel/category

Get Novels in a Specific Category:

GET https://api.i-as.dev/api/novel/list/fantasy?page=1&limit=20

Get Details of a Specific Novel:

GET https://api.i-as.dev/api/novel/detail/novel-title-1

Get Chapters of a Novel:

GET https://api.i-as.dev/api/novel/chapter/novel-title-1?page=1&limit=20