[FEATURE]: Commande pour tester la doc API d'un PA par rapport à la norme #27
Labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Construction_PA/PA_Communautaire#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Le but est d'avoir un test rapide pour voir si la doc swagger proposé par un PA respect la norme XP_Z12-013 :
https://git.pdplibre.org/Construction_PA/PA_Communautaire/src/branch/main/docs/norme/XP_Z12-013_SWAGGER_Annexes_A_et_B_V1.2
En sortie, avoir une ligne par test.
Exemple
No response
voir s'il n'existe pas déjà un outil pour comparer 2 API swagger
swagger-diff ?
J'ai fait du presque vibe coding avec l'environnement de dev lancé et le cli.
pac test swagger [--service flow|directory]
Fichiers
uv run pac test swagger http://localhost:8000/openapi.json
Validation swagger FLOW Service...
URL: http://localhost:8000/openapi.json
✅ Version OpenAPI: 3.1.0
✅ Info.title: FastAPI
✅ Info.version: 0.1.0
❌ Sécurité Bearer: MANQUANT - authentification Bearer requise (XP Z12-013 §5)
✅ Healthcheck: présent (/healthcheck)
✅ GET /v1/flows/{flowId}: présent
✅ GET /v1/healthcheck: présent
✅ POST /v1/flows: présent
❌ POST /v1/flows/search: MANQUANT
❌ 7/9 tests passés - NON CONFORME
j'ai ajouté les liens API de superPDP