{"openapi":"3.0.3","info":{"title":"API Audit E-commerce","version":"1.0.0","description":"Cree et consulte des audits e-commerce. Authentification par cle API (Authorization: Bearer <key> ou X-Api-Key)."},"servers":[{"url":"https://plusdeventes.fr"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"},"apiKey":{"type":"apiKey","in":"header","name":"X-Api-Key"}}},"security":[{"bearerAuth":[]},{"apiKey":[]}],"paths":{"/api/v1/audits":{"post":{"summary":"Creer un audit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","example":"https://exemple-boutique.com"},"options":{"type":"object","properties":{"competitors":{"type":"boolean"},"maxProducts":{"type":"integer"},"modules":{"type":"array","items":{"type":"string"}}}}}}}}},"responses":{"201":{"description":"Audit cree"},"401":{"description":"Non authentifie"}}},"get":{"summary":"Lister les audits","responses":{"200":{"description":"OK"}}}},"/api/v1/audits/{id}":{"get":{"summary":"Detail d un audit (donnees structurees)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"404":{"description":"Introuvable"}}}},"/api/v1/audits/{id}/report":{"get":{"summary":"Telecharger le rapport (pdf|pptx)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","schema":{"type":"string","enum":["pdf","pptx"]}}],"responses":{"200":{"description":"Fichier binaire"}}}}}}