The diagnos REST API lives in diagnos/integration.
A API REST da diagnos vive em diagnos/integration.
Note
🇺🇸 This repository is a signpost — no code lives here. The API is a self-hosted REST facade (FastAPI, mutual TLS only) over the diagnos SDK, so both live in the same repository and ship together. 🇧🇷 Este repositório é uma placa de sinalização — nenhum código mora aqui. A API é uma fachada REST que você hospeda (FastAPI, só mTLS) sobre o SDK da diagnos, então os dois vivem no mesmo repositório e saem juntos.
git clone https://github.com/diagnos/integration && cd integration
docker build -f api/Dockerfile -t diagnos-api .
docker run --rm -p 8443:8443 \
-e DIAGNOS_API_TOKEN=apikey-… \
-e DIAGNOS_API_MTLS_CA_FILE=/certs/clients-ca.pem \
-e DIAGNOS_API_TLS_CERT_FILE=/certs/server.pem \
-e DIAGNOS_API_TLS_KEY_FILE=/certs/server-key.pem \
-v "$PWD/certs:/certs:ro" diagnos-apicurl --cert client.pem --key client-key.pem --cacert clients-ca.pem \
https://localhost:8443/v1/patients| 🇺🇸 I want to… · 🇧🇷 Eu quero… | |
|---|---|
| See every route and error code · Ver toda rota e código de erro | integration/api |
| Generate the mTLS certificates · Gerar os certificados mTLS | openssl walkthrough · passo a passo |
| Deploy with Compose or Kubernetes · Subir com Compose ou Kubernetes | integration/api/deploy |
| Report a bug or ask for a feature · Reportar bug ou pedir feature | Issues |
| Report a vulnerability · Reportar vulnerabilidade | Security advisories |
| Use it from Python instead · Usar direto pelo Python | integration/sdk |