get all
Interest
get all
Get all Interests
The endpoint makes an HTTP GET request to retrieve a list of interests with pagination. The request includes the page number and the limit of interests per page.
The response for this request can be documented as a JSON schema as follows:
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"interests": {
"type": "object",
"properties": {
"docs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"_id": {"type": "string"},
"user": {
"type": "object",
"properties": {
"_id": {"type": "string"},
"firstName": {"type": "string"},
"lastName": {"type": "string"},
"userName": {"type": "string"},
"email": {"type": "string"},
"role": {"type": "string"},
"createdAt": {"type": "string"},
"updatedAt": {"type": "string"},
"__v": {"type": "integer"}
}
},
"genre": {
"type": "object",
"properties": {
"_id": {"type": "string"},
"name": {"type": "string"}
}
},
"createdAt": {"type": "string"},
"updatedAt": {"type": "string"},
"__v": {"type": "integer"}
}
}
},
"totalDocs": {"type": "integer"},
"offset": {"type": "integer"},
"limit": {"type": "integer"},
"totalPages": {"type": "integer"},
"page": {"type": "integer"},
"pagingCounter": {"type": "integer"},
"hasPrevPage": {"type": "boolean"},
"hasNextPage": {"type": "boolean"},
"prevPage": {"type": "null"},
"nextPage": {"type": "null"}
}
},
"error": {"type": "null"}
}
}
}
}
GET
get all