Send aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Distribuidos-Org/ms-alumnos/llms.txt
Use this file to discover all available pages before exploring further.
find_all_alumnos message to retrieve a paginated list of student records from the database. The service uses TypeORM’s findAndCount method to return both the data slice and the total record count in a single query. Both page and limit are optional and default to 1 and 10 respectively when omitted.
Message pattern
Request payload
Page number to retrieve. Must be a positive integer. Defaults to
1 when omitted.Number of records to return per page. Must be a positive integer. Defaults to
10 when omitted.Response
Array of alumno records for the requested page.
Total number of alumno records currently in the database, regardless of the requested page or limit.
The current page number reflected in this response.
The page size used to produce this response.
Each
Alumno object in data includes a contrasena field containing the bcrypt hash of the student’s password. Callers should discard or ignore this field; never display or forward the hash to end users.Example
Pagination math
Usetotal and limit from the response to calculate the total number of available pages:
total is 95 and limit is 20, there are Math.ceil(95 / 20) = 5 pages. The last page (page: 5) will contain only 15 records.
Errors
| Status | Cause |
|---|---|
400 | page or limit is not a positive number (e.g. 0, -1, or a non-numeric string). |