{"openapi":"3.0.0","servers":[{"description":"Addition of Two Variables","url":"https://virtserver.swaggerhub.com/self-45d/AdditionOfTwoVariables/1.0.0"}],"info":{"description":"This is a simple API for Addition of Two Variables","version":"1.0.0","title":"Addition of Two Variables","contact":{"email":"test@your-company.com"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"tags":[{"name":"developers","description":"Operations available to regular developers"}],"paths":{"/add":{"post":{"tags":["developers"],"summary":"adds two numbers","operationId":"addTwoNumbers","description":"adds two numbers","requestBody":{"description":"Request for add two numbers operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddTwoNumbers"}}}},"responses":{"201":{"description":"addition is performed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdditionResult"}}}},"400":{"description":"invalid input, object invalid","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"number_1 and number_2 are required"}}}}}}}}}},"components":{"schemas":{"AddTwoNumbers":{"type":"object","required":["number_1","number_2"],"properties":{"number_1":{"type":"integer","format":"int64","example":1},"number_2":{"type":"integer","format":"int64","example":2}}},"AdditionResult":{"type":"object","required":["result"],"properties":{"result":{"type":"integer","format":"int64","example":3,"description":"sum of number_1 and number_2"}}}}}}