Test Endpoints

Base URL: /api/externalAPIs/public/assets/test
Autenticação: Bearer Token (API Key)

GET /api/externalAPIs/public/assets/test

Executa uma suíte de testes completa.

curl -X GET https://api.tolky.to/api/externalAPIs/public/assets/test \
  -H "Authorization: Bearer YOUR_API_KEY"

POST /api/externalAPIs/public/assets/test/health-check

Testa o health check de uma URL.

curl -X POST https://api.tolky.to/api/externalAPIs/public/assets/test/health-check \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/file.pdf"}'

POST /api/externalAPIs/public/assets/test/check-multiple

Health check em batch (máximo 20 URLs).

curl -X POST https://api.tolky.to/api/externalAPIs/public/assets/test/check-multiple \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": [
      "https://example.com/file1.pdf",
      "https://example.com/file2.jpg",
      "https://example.com/file3.mp4"
    ]
  }'

POST /api/externalAPIs/public/assets/test/sanitize

Testa sanitização de URL.

curl -X POST https://api.tolky.to/api/externalAPIs/public/assets/test/sanitize \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "  https://example.com/file.pdf  \n\t"}'

DELETE /api/externalAPIs/public/assets/test/cache

Limpa o cache (URL específica ou tudo).

# Específico
curl -X DELETE "https://api.tolky.to/api/externalAPIs/public/assets/test/cache?url=https://example.com/file.pdf" \
  -H "Authorization: Bearer YOUR_API_KEY"

# Tudo
curl -X DELETE https://api.tolky.to/api/externalAPIs/public/assets/test/cache \
  -H "Authorization: Bearer YOUR_API_KEY"