get all
Genre
get all
Get All Genres
This endpoint makes an HTTP GET request to retrieve a list of all genres.
Request
Query Parameters
page(integer, optional): The page number for paginated results.limit(integer, optional): The maximum number of genres to be returned per page.
Response
Upon a successful request, the API returns a JSON object with the following properties:
-
data(object): An object containing the genres data.genres(object): An object containing the array of genres and pagination details.docs(array): An array of genre objects, each containing the following properties:_id(string): The unique identifier for the genre.name(string): The name of the genre.createdAt(string): The timestamp of when the genre was created.updatedAt(string): The timestamp of when the genre was last updated.__v(integer): Version key for the genre.
totalDocs(integer): The total number of genres.offset(integer): The offset of the current page.limit(integer): The maximum number of genres per page.totalPages(integer): The total number of pages.page(integer): The current page number.pagingCounter(integer): The paging counter.hasPrevPage(boolean): Indicates if there is a previous page.hasNextPage(boolean): Indicates if there is a next page.prevPage(null or integer): The previous page number, if applicable.nextPage(null or integer): The next page number, if applicable.
-
error(null): Indicates the absence of any error.
GET
get all