Skip to main content
GET
/
genres
/
all
get all
curl --request GET \
  --url http://localhost:8000/v1/genres/all
{
  "data": {
    "genres": {
      "docs": [
        {
          "__v": 0,
          "_id": "670e14f586ced1463b2b60bc",
          "createdAt": "2024-10-15T07:08:37.804Z",
          "name": "Fiction",
          "updatedAt": "2024-10-15T07:08:37.804Z"
        },
        {
          "__v": 0,
          "_id": "670e3731648069ca43164de8",
          "createdAt": "2024-10-15T09:34:41.536Z",
          "name": "SciFi",
          "updatedAt": "2024-10-15T09:34:41.536Z"
        }
      ],
      "hasNextPage": false,
      "hasPrevPage": false,
      "limit": 10,
      "nextPage": null,
      "offset": 0,
      "page": 1,
      "pagingCounter": 1,
      "prevPage": null,
      "totalDocs": 2,
      "totalPages": 1
    }
  },
  "error": null
}

Query Parameters

page
string
Example:

"1"

limit
string
Example:

"10"

Response

get all - success

data
object
error
unknown