Exemples
Recettes curl, Python et JavaScript prêtes-à-copier.
Remplacez arc_pat_VOTRE_TOKEN par votre PAT (cf. Authentification).
1. Lister les applications
curl -H "Authorization: Bearer arc_pat_VOTRE_TOKEN" \
https://api.arch-platform.com/api/v1/referentiel/applicationsimport requests
resp = requests.get(
"https://api.arch-platform.com/api/v1/referentiel/applications",
headers={"Authorization": "Bearer arc_pat_VOTRE_TOKEN"},
)
print(resp.json())const resp = await fetch(
"https://api.arch-platform.com/api/v1/referentiel/applications",
{ headers: { Authorization: "Bearer arc_pat_VOTRE_TOKEN" } },
);
console.log(await resp.json());2. Détail d'une application
curl -H "Authorization: Bearer arc_pat_VOTRE_TOKEN" \
https://api.arch-platform.com/api/v1/referentiel/applications/DEMO-CRM3. Arbre des fonctions métier
curl -H "Authorization: Bearer arc_pat_VOTRE_TOKEN" \
https://api.arch-platform.com/api/v1/referentiel/functionsVariante /referentiel/functions/posi : arbre + apps liées enrichies (nom, BApp parente, criticité).
4. KPIs référentiel
curl -H "Authorization: Bearer arc_pat_VOTRE_TOKEN" \
https://api.arch-platform.com/api/v1/referentiel/functions/statsPatterns production
- Retry exponentiel sur
429(respectRetry-After) - Rotation token au démarrage si
401 - Timeout HTTP 30s (p99 < 2s pour les arbres)