{"openapi":"3.1.0","info":{"title":"PES2B Sign Service API","description":"API para assinatura digital de documentos PDF\nutilizando certificados ICP-Brasil.\n","contact":{"name":"PES2B Tecnologia","url":"https://pes2b.com"},"license":{"name":"Uso interno"},"version":"1.0.0"},"externalDocs":{"description":"Documentação Técnica","url":"https://pes2b.com"},"servers":[{"url":"http://sign.pes2b.com","description":"Generated server url"}],"paths":{"/api/v1/sign":{"post":{"tags":["sign-controller"],"operationId":"sign","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseSignResponse"}}}}}}},"/api/v1/pades/test":{"post":{"tags":["pades-controller"],"operationId":"sign_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PadesSignRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponsePadesSignResponse"}}}}}}},"/api/v1/health":{"get":{"tags":["health-controller"],"operationId":"health","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseHealthData"}}}}}}},"/api/v1/certificates/test":{"get":{"tags":["Certificates"],"summary":"Testa o carregamento do certificado configurado","operationId":"testCertificate","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseCertificateTestResponse"}}}}}}}},"components":{"schemas":{"SignRequest":{"type":"object","properties":{"pdfBase64":{"type":"string","minLength":1}},"required":["pdfBase64"]},"ApiResponseSignResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/SignResponse"},"warnings":{"type":"array","items":{"type":"string"}},"executionTimeMs":{"type":"integer","format":"int64"},"timestamp":{"type":"string"},"version":{"type":"string"}}},"SignResponse":{"type":"object","properties":{"signedPdfBase64":{"type":"string"}}},"PadesSignRequest":{"type":"object","properties":{"pdfBase64":{"type":"string","minLength":1}},"required":["pdfBase64"]},"ApiResponsePadesSignResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PadesSignResponse"},"warnings":{"type":"array","items":{"type":"string"}},"executionTimeMs":{"type":"integer","format":"int64"},"timestamp":{"type":"string"},"version":{"type":"string"}}},"PadesSignResponse":{"type":"object","properties":{"signedPdfBase64":{"type":"string"}}},"ApiResponseHealthData":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/HealthData"},"warnings":{"type":"array","items":{"type":"string"}},"executionTimeMs":{"type":"integer","format":"int64"},"timestamp":{"type":"string"},"version":{"type":"string"}}},"HealthData":{"type":"object","properties":{"service":{"type":"string"},"status":{"type":"string"},"environment":{"type":"string"},"javaVersion":{"type":"string"}}},"ApiResponseCertificateTestResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CertificateTestResponse"},"warnings":{"type":"array","items":{"type":"string"}},"executionTimeMs":{"type":"integer","format":"int64"},"timestamp":{"type":"string"},"version":{"type":"string"}}},"CertificateTestResponse":{"type":"object","properties":{"alias":{"type":"string"},"owner":{"type":"string"},"cnpj":{"type":"string"},"issuer":{"type":"string"},"serialNumber":{"type":"string"},"validFrom":{"type":"string","format":"date-time"},"validUntil":{"type":"string","format":"date-time"},"validNow":{"type":"boolean"},"expired":{"type":"boolean"}}}}}}