TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jperez77775/ProyectoDocker/llms.txt
Use this file to discover all available pages before exploring further.
/cv endpoint queries the cv_db MySQL database and returns a single JSON object containing personal information from the persona table and all education records from the formacion table. You can use this endpoint to render a complete CV without any additional requests.
Request
Example
Response codes
| Status | Meaning |
|---|---|
200 OK | Request succeeded. Response body contains the full CV object. |
503 Service Unavailable | Database connection is not yet ready. Retry after a few seconds. |
500 Internal Server Error | A MySQL query failed. |
404 Not Found | No rows exist in the persona table. |
Response schema
First name(s) of the person. Example:
"Juan Eduardo".Last name(s) of the person. Example:
"Pérez Orellana".City of residence. Example:
"Santa Cruz".Path to the profile image served by the frontend. Example:
"/perfil.jpg".Array of academic education records ordered by insertion. Each item contains the following fields:
Example response
The following response reflects the seed data inserted bydatabase/init.sql:
How the response is built
The following excerpt frombackend/server.js shows how the cv object is assembled and sent. The sanearTexto function is applied to all string fields before the response is serialized:
sanearTexto() corrects a MySQL latin1/utf8 encoding mismatch that can corrupt Spanish characters such as é, ó, and ú. When MySQL returns string data interpreted as latin1 binary instead of UTF-8, the function re-reads the raw bytes as UTF-8, restoring the correct characters. This ensures that accented letters in names and titles are always rendered correctly in the response.