Hi Folks,

Relatively new to swagger files, just wondering if anyone could help me 
out? I have an Azure app to grab meeting room calendars with 3 functions: 
GetRoomLists, Rooms & GetRoom. The Swagger API is returning the room info 
when I paste the Request URL straight into the browser, but is failing on 
the execute in Swagger Editor. Just wondering where I am going wrong?

Swagger file below:

swagger: '2.0'
info:
  title: meetingroomfunctions
  version: 1.0.0
host: "HOST NAME"
basePath: /
schemes:
  - https
  - http
paths:
  '/api/GetRoom/{roomname}/{year}/{month}/{day}':
    get:
      summary: 'Appointments for a given room on a given year, month and 
day'
      operationId: GetRoom
      produces: []
      consumes: []
      parameters:
        - name: roomname
          in: path
          required: true
          type: string
        - name: year
          in: path
          required: true
          type: string
        - name: month
          in: path
          required: true
          type: string
        - name: day
          in: path
          required: true
          type: string
        - name: code
          in: query
          default: "API KEY HERE"
          type: string
      description: 'Appointments for a given room on a given year, month 
and day'
      responses:
        '200':
          description: Success operation
          schema:
            type: array
            items:
              type: object
              properties:
                Subject:
                  type: string
                Start:
                  type: string
                  format: date-time
                End:
                  type: string
                  format: date-time
                Organiser:
                  type: string
                OrganiserEmail:
                  type: string
  /api/GetRoomLists:
    get:
      operationId: GetRoomLists
      summary: Get room lists
      produces: []
      consumes: []
      parameters:
        - name: code
          in: query
          default: "API KEY HERE"
          type: string
      description: Room Lists
      responses:
        '200':
          description: Success operation
          schema:
            type: array
            items:
              type: object
              properties:
                Name:
                  type: string
                Address:
                  type: string
                RoutingType:
                  type: string
                MailboxType:
                  type: integer
                Id:
                  type: integer
  '/api/Rooms/{name}/List':
    get:
      operationId: GetRooms
      summary: Rooms for a given room list
      produces: []
      consumes: []
      parameters:
        - name: name
          in: path
          required: true
          type: string
        - name: code
          in: query
          default: "API KEY HERE"
          type: string
      description: Rooms for a given room list
      responses:
        '200':
          description: Success operation
          schema:
            type: array
            items:
              type: object
              properties:
                Name:
                  type: string
                Address:
                  type: string
                RoutingType:
                  type: string
                MailboxType:
                  type: integer
                Id:
                  type: integer
definitions: {}

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to