swagger get parameters array code example

Example 1: query parameter swagger

parameters:
        - in: query
          name: offset
          schema:
            type: integer
          description: The number of items to skip before starting to collect the result set
        - in: query
          name: limit
          schema:
            type: integer
          description: The numbers of items to return

Example 2: swagger array object example

drivers:
              type: array
              items:
                type: object
                properties:
                  firstName:
                    type: string
                  lastName:
                    type: string
                  identification:
                    type: string
                  identificationType:
                    type: string
                  license:
                    type: string
                  licenseExpiration:
                    type: string
                    format: date-time
                  licenseFront:
                    type: string
                  licenseBack:
                    type: string
                  icFront:
                    type: string
                  icBack:
                    type: string

Tags:

Misc Example