{"openapi":"3.0.1","info":{"title":"Agent Signature TTN","license":{"name":"Tunisie TradeNet","url":"https://www.tradenet.com.tn"},"version":"1.0.4"},"servers":[{"url":"http://localhost:8080","description":"Generated server url"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/agent/sign":{"post":{"tags":["Sign"],"operationId":"sign_1","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["document"],"properties":{"document":{"type":"string","format":"binary"},"attachments":{"type":"array","items":{"type":"string","format":"binary"}}}}},"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSigned"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSigned"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSigned"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataSigned"}}}}}}},"/agent/verify":{"post":{"tags":["Verify"],"operationId":"verify_1","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["document"],"properties":{"document":{"type":"string","format":"binary"},"attachments":{"type":"array","items":{"type":"string","format":"binary"}}}}},"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataVerified"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataVerified"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataVerified"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataVerified"}}}}}}}},"components":{"schemas":{"Attachment":{"type":"object","properties":{"name":{"type":"string"},"content":{"type":"string"}}},"DataSigned":{"type":"object","properties":{"signed":{"$ref":"#/components/schemas/Message"},"errors":{"type":"array","items":{"type":"string"}}}},"DataVerified":{"type":"object","properties":{"result":{"type":"string"},"errors":{"type":"array","items":{"type":"string"}}}},"Document":{"type":"object","properties":{"name":{"type":"string"},"content":{"type":"string"}}},"Message":{"type":"object","properties":{"document":{"$ref":"#/components/schemas/Document"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"}}}}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","name":"X-API-KEY","in":"header"}}}}