curl --request GET \
--url http://localhost:8787/api/v1/documents
{
"data": [
{
"id": 123,
"title": "<string>",
"type": "<string>",
"uploadDate": "<string>",
"size": "<string>",
"quizCount": 123,
"processingStatus": "pending"
}
],
"pagination": {
"page": 123,
"limit": 123,
"totalItems": 123,
"totalPages": 123,
"hasNextPage": true,
"hasPreviousPage": true
}
}
Get all documents from the database
curl --request GET \
--url http://localhost:8787/api/v1/documents
{
"data": [
{
"id": 123,
"title": "<string>",
"type": "<string>",
"uploadDate": "<string>",
"size": "<string>",
"quizCount": 123,
"processingStatus": "pending"
}
],
"pagination": {
"page": 123,
"limit": 123,
"totalItems": 123,
"totalPages": 123,
"hasNextPage": true,
"hasPreviousPage": true
}
}
Documents fetched successfully
The response is of type object
.