Data sources are the external API endpoints the platform queries whenever an auditor searches for patrimonial declarations. Each entry stores the base URL, authentication method, and activation state for one external registry. The NestJS backend reads these configurations at query time to fetch declaration data securely — no API credentials are hardcoded in the frontend. Keeping your sources accurate and tested is therefore critical to search reliability.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/MauroTalamantes/Evolucion-Patrimonial-Plataforma-Plan-B/llms.txt
Use this file to discover all available pages before exploring further.
Lista de fuentes configuradas
The Fuentes de Datos page renders one card per configured source in a responsive grid (1 column on mobile, 2 on tablet, 3 on desktop). Each card contains:- Nombre de la fuente — display name shown in the card header (e.g., “SFP Declaranet Nacional”).
- Estado badge —
ACTIVA(green) orINACTIVA(grey). Inactive cards are rendered at reduced opacity with a greyscale filter. - URL Base — the endpoint root rendered in a monospaced, truncated field with a tooltip showing the full value on hover (e.g.,
https://api.declaranet.gob.mx/v1). - Autenticación — always
Token Bearer (OAuth2)in the current implementation. - Action buttons — located in the card footer:
- Pencil icon — opens the edit modal pre-filled with this source’s data.
- Trash icon — opens the delete confirmation modal.
- Probar — tests the connection to the URL Base.
- Activar / Desactivar — toggles the
estadofield.
Añadir nueva fuente
Open the create modal
Click the Nueva Fuente button in the top-right corner of the page header. The “Añadir Fuente de Datos” modal opens.
Fill in the fields
Complete both required fields:
Authentication is set to Token Bearer automatically — there is no selector in the current UI.
| Field | Description | Example |
|---|---|---|
| Nombre | A human-readable identifier for this source. | SFP Plataforma Digital Nacional |
| URL Base | The root URL of the external API. Must be reachable by the backend. | https://api.declaranet.gob.mx/v1 |
Editar una fuente
Open the edit modal
Click the pencil icon on the card of the source you want to modify. The “Editar Fuente de Datos” modal opens with all current values pre-filled.
Modify the fields
Update Nombre, URL Base, or both. The
estado field cannot be changed from this modal — use the toggle button on the card to change activation state.Probar conexión
Click the Probar button on any source card to verify that the URL Base is reachable.- The
RefreshCwicon animates (spin) while the test runs. - The button is disabled during the test to prevent duplicate requests.
- On completion, an alert confirms whether the connection was successful.
Activar / desactivar fuente
Click the power toggle button at the bottom-right of any source card to flip itsestado:
- ACTIVA → INACTIVA: The button label changes to “Activar”. The card becomes semi-transparent and greyscale. The backend will skip this source during declaration searches.
- INACTIVA → ACTIVA: The card returns to full color and opacity. The source is queried again during searches.