馃О Dev Tools Marketplace

Useful utilities for developers, ready to use and open-source.

馃摎 Documentaci贸n de la API de Autenticaci贸n

Endpoint de Autenticaci贸n

POST https://testio.dev/api/auth

Descripci贸n

Este endpoint genera tokens de autenticaci贸n din谩micos para su uso en APIs.

Par谩metros de Solicitud

{
    "username": "string",
    "password": "string"
}

Respuesta Exitosa (200 OK)

{
    "status": "success",
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "expires_in": 3600
}

Respuesta de Error (401 Unauthorized)

{
    "status": "error",
    "message": "Credenciales inv谩lidas"
}

Ejemplo de uso con cURL

curl -X POST https://testio.dev/api/auth \
    -H "Content-Type: application/json" \
    -d '{"username": "test_user", "password": "test_password"}'

Ejemplo de uso con Postman

  1. M茅todo: POST
  2. URL: https://testio.dev/api/auth
  3. Headers: Content-Type: application/json
  4. Body (raw JSON):
    {
        "username": "test_user",
        "password": "test_password"
    }