{"swagger":"2.0","info":{"description":"API document of Hello World service","version":"1.0.0","title":"API Specification of Hello World","termsOfService":"http://example.com/","contact":{"name":"dayflower","url":"https://github.com/dayflower","email":"@dayflower"},"license":{"name":"PUBLIC DOMAIN"}},"host":"localhost","basePath":"/","tags":[{"name":"Arithmetic Calculation","description":"Provides several basic arithmetic function."},{"name":"Greeting","description":"Provides greeting methods."}],"paths":{"/":{"get":{"tags":["Greeting"],"summary":"Top","description":"Get availability of the service.","operationId":"GreetingControllerTest_top","consumes":["application/json"],"produces":["application/json;charset=UTF-8"],"parameters":[{"name":"stage","in":"query","description":"Stage.","required":true,"type":"string","default":"PRODUCTION","enum":["DEVELOPING","STAGING","PRODUCTION"]}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/TopResponse"}}}}},"/arith/add":{"post":{"tags":["Arithmetic Calculation"],"summary":"Add","description":"Add two values.","operationId":"ArithmeticControllerTest_add","consumes":["application/json"],"produces":["application/json;charset=UTF-8"],"parameters":[{"in":"body","name":"request","description":"request","required":true,"schema":{"$ref":"#/definitions/ArithmeticRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ArithmeticResponse"}}}}},"/arith/div":{"post":{"tags":["Arithmetic Calculation"],"summary":"Divide","description":"Divide one value by the other value.","operationId":"ArithmeticControllerTest_div","consumes":["application/json"],"produces":["application/json;charset=UTF-8"],"parameters":[{"in":"body","name":"request","description":"request","required":true,"schema":{"$ref":"#/definitions/ArithmeticRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ArithmeticResponse"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ArithmeticController.BadRequestResponse"}}}}},"/arith/mul":{"post":{"tags":["Arithmetic Calculation"],"summary":"Multiple","description":"Multiply two values.","operationId":"ArithmeticControllerTest_mul","consumes":["application/json"],"produces":["application/json;charset=UTF-8"],"parameters":[{"in":"body","name":"request","description":"request","required":true,"schema":{"$ref":"#/definitions/ArithmeticRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ArithmeticResponse"}}}}},"/arith/sub":{"post":{"tags":["Arithmetic Calculation"],"summary":"Subtract","description":"Subtract one value from the other value.","operationId":"ArithmeticControllerTest_sub","consumes":["application/json"],"produces":["application/json;charset=UTF-8"],"parameters":[{"in":"body","name":"request","description":"request","required":true,"schema":{"$ref":"#/definitions/ArithmeticRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/ArithmeticResponse"}}}}},"/greet":{"post":{"tags":["Greeting"],"summary":"Greet","description":"Get greeting message for the request.","operationId":"GreetingControllerTest_greet","consumes":["application/json"],"produces":["application/json;charset=UTF-8"],"parameters":[{"in":"body","name":"request","description":"request","required":true,"schema":{"$ref":"#/definitions/GreetingRequest"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/GreetingResponse"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/GreetingController.BadRequestResponse"}}}}}},"definitions":{"ArithmeticController.BadRequestResponse":{"type":"object","properties":{"message":{"type":"string","example":"0 is not permitted.","description":"Error message."}},"description":"Response model for bad request."},"ArithmeticRequest":{"type":"object","properties":{"value1":{"type":"integer","format":"int32","example":1,"description":"Former operand."},"value2":{"type":"integer","format":"int32","example":2,"description":"Latter operand."}},"description":"Common request model for arithmetic calculation."},"ArithmeticResponse":{"type":"object","properties":{"result":{"type":"integer","format":"int32","example":3,"description":"Result value."}},"description":"Common response model for arithmetic calculation."},"GreetingController.BadRequestResponse":{"type":"object","properties":{"message":{"type":"string","example":"0 is not permitted.","description":"Error message."}},"description":"Response model for bad request."},"GreetingRequest":{"type":"object","properties":{"name":{"type":"string","example":"dayflower","description":"Name of the person."},"title":{"type":"string","example":"Mr.","description":"Title of the person."}},"description":"Request model for greeting."},"GreetingResponse":{"type":"object","properties":{"message":{"type":"string","example":"Hello, Mr. dayflower","description":"Message from the system."}},"description":"Response model for greeting."},"TopResponse":{"type":"object","properties":{"alive":{"type":"boolean","example":false,"description":"Whether service is available or not."}},"description":"Response model for top."}}}