consumes: - application/json info: contact: email: elf.sternberg@gmail.com name: Elf Sternberg url: https://github.com/elfsternberg/go-timeofday description: Return the time of day. Timezone optional. license: name: apache-2.0 title: timeofday version: 0.1.0 paths: {} produces: - application/json schemes: - http swagger: "2.0" # Everything above this line was generated by the swagger command. # Everything below this line has to be added by hand. basePath: /timeofday/v1 definitions: timezone: type: object required: - timezone properties: timezone: type: string minLength: 3 default: "UTC" timeofday: type: object properties: timeofday: type: string errorResponse: type: object properties: code: type: integer format: int32 message: type: string required: - message paths: /time: post: description: "Returns time of day." operationId: "TimePost" parameters: - in: "body" name: "timezone" description: "Timezone to return" required: false schema: $ref: "#/definitions/timezone" responses: 200: description: "Returns the time of day." schema: $ref: "#/definitions/timeofday" 404: description: "Time zone not found" schema: $ref: "#/definitions/errorResponse" 500: description: "Something has gone horribly wrong" schema: $ref: "#/definitions/errorResponse" get: description: "Returns time of day." operationId: "TimeGet" parameters: - in: query name: timezone description: "Timezone to return" required: false type: string responses: 200: description: "Returns the time of day." schema: $ref: "#/definitions/timeofday" 404: description: "Time zone not found" schema: $ref: "#/definitions/errorResponse" 500: description: "Something has gone horribly wrong" schema: $ref: "#/definitions/errorResponse"