﻿{
  openapi: 3.1.1,
  info: {
    title: WebApi | v1,
    version: 1.0.0
  },
  servers: [
    {
      url: http://localhost/
    }
  ],
  paths: {
    /api/Time: {
      get: {
        tags: [
          Time
        ],
        summary: Gets the current date and time.,
        description: The current date and time is returned in Coordinated Universal Time (UTC).,
        responses: {
          200: {
            description: The current date and time.,
            content: {
              text/plain: {
                schema: {
                  $ref: #/components/schemas/TimeModel
                }
              },
              application/json: {
                schema: {
                  $ref: #/components/schemas/TimeModel
                }
              },
              text/json: {
                schema: {
                  $ref: #/components/schemas/TimeModel
                }
              }
            }
          }
        }
      }
    }
  },
  components: {
    schemas: {
      TimeModel: {
        type: object,
        properties: {
          utcNow: {
            type: string,
            description: The current date and time in UTC.,
            format: date-time
          }
        },
        description: Represents the current date and time.
      }
    }
  },
  tags: [
    {
      name: Time
    }
  ]
}