{"service":"PDF Generation Service","version":"1.0.0","endpoints":{"health":"/healthz","readiness":"/readyz","render":"POST /render-pdf","admin":{"login":"POST /admin/login","logout":"POST /admin/logout","session":"GET /admin/session","panel":"GET /admin (requires auth)","mappings":{"list":"GET /admin/api/mappings","create":"POST /admin/api/mappings","delete":"DELETE /admin/api/mappings/:id","clear":"POST /admin/api/clear-database","templates":"GET /admin/api/templates"}}},"documentation":{"examples":{"directTemplate":{"method":"POST","url":"/render-pdf","body":{"template":"invoice","data":{},"pdf":{"format":"A4"},"download":{"filename":"document.pdf"}}},"companyCodeBased":{"method":"POST","url":"/render-pdf","body":{"companyCode":"101","data":{},"pdf":{"format":"A4"},"download":{"filename":"document.pdf"}}}},"notes":["Either 'template' or 'companyCode' must be provided","Company codes are mapped to templates via the admin panel","If both are provided, they must match the configured mapping"]}}