swagger: "2.0" info: title: "" version: 0.0.1 host: localhost:80 consumes: - application/json - application/xml - application/gob produces: - application/json - application/xml - application/gob paths: /divide/{a}/{b}: get: tags: - calc summary: divide calc operationId: calc#divide parameters: - name: a in: path description: Left operand required: true type: integer format: int64 - name: b in: path description: Right operand required: true type: integer format: int64 responses: "200": description: OK response. schema: type: integer format: int64 "400": description: Bad Request response. schema: $ref: '#/definitions/CalcDivideZeroDivisionResponseBody' schemes: - http /multiply/{a}/{b}: get: tags: - calc summary: multiply calc operationId: calc#multiply parameters: - name: a in: path description: Left operand required: true type: integer format: int64 - name: b in: path description: Right operand required: true type: integer format: int64 responses: "200": description: OK response. schema: type: integer format: int64 schemes: - http /redirect: get: tags: - calc summary: redirect calc operationId: calc#redirect responses: "307": description: Temporary Redirect response. schemes: - http definitions: CalcDivideZeroDivisionResponseBody: title: 'Mediatype identifier: application/vnd.goa.error; view=default' type: object properties: fault: type: boolean description: Is the error a server-side fault? example: true id: type: string description: ID is a unique identifier for this particular occurrence of the problem. example: 123abc message: type: string description: Message is a human-readable explanation specific to this occurrence of the problem. example: parameter 'p' must be an integer name: type: string description: Name is the name of this class of errors. example: bad_request temporary: type: boolean description: Is the error temporary? example: true timeout: type: boolean description: Is the error a timeout? example: true description: divide_zero_division_response_body result type (default view) example: fault: true id: 123abc message: parameter 'p' must be an integer name: bad_request temporary: true timeout: true required: - name - id - message - temporary - timeout - fault