Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Miguel-Rodriguez15/msvc/llms.txt

Use this file to discover all available pages before exploring further.

Fetches every Usuario record stored in the MySQL database and wraps the result in a JSON envelope that also exposes the Kubernetes pod name/IP (useful for debugging load-balanced deployments) and a runtime text value injected from the config.texto ConfigMap key. A valid OAuth2 Bearer token with either the read or write scope must be included in the request. Base URL: http://localhost:8001
Gateway URL: http://localhost:8090/api/usuarios

Endpoint

GET http://localhost:8001/

Request

Headers

HeaderValue
AuthorizationBearer <access_token>
Content-Typeapplication/json
No path parameters or query parameters are accepted by this endpoint.

Response

200 OK

Returns a JSON object with three top-level keys.
users
array
required
Array of all Usuario objects in the database.
pod_info
string
A string in the format "podname: podip" sourced from the MY_POD_NAME and MY_POD_IP environment variables injected by Kubernetes. Returns "null: null" when running outside a Kubernetes cluster.
texto
string
A runtime text value read from the config.texto key in the mounted ConfigMap. Useful for verifying live config reloads.

Example

Request

curl -X GET http://localhost:8001/ \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json"
Via the API Gateway:
curl -X GET http://localhost:8090/api/usuarios/ \
  -H "Authorization: Bearer <access_token>"

Response

{
  "users": [
    {
      "id": 1,
      "nombre": "Ana García",
      "email": "ana.garcia@example.com",
      "password": "$2a$10$Xv3k8qW2mN5pL9oJ1rT6uO7yZ4hB0cD3eF5gH8iJ2kM4nP6qR8sU"
    },
    {
      "id": 2,
      "nombre": "Carlos López",
      "email": "carlos.lopez@example.com",
      "password": "$2a$10$Ab1cDe2fGh3iJk4lMn5oPq6rSt7uVw8xYz9aAbBcCdDeEfFgGhHiI"
    }
  ],
  "pod_info": "msvc-usuarios-6d9b7f-xkp2r: 10.244.1.15",
  "texto": "Bienvenidos al microservicio de usuarios"
}

Build docs developers (and LLMs) love