swagger: '2.0'
info:
  description: Get Choice
  version: '1.0'
  title: Get Choices for a given field
host: localhost:4502
schemes:
  - http
paths:
  /content/azuredemo/api/getFieldChoices/jcr:content.json:
    get:
      summary: Get options for a give searchable field
      description: Returns options for a given choice field
      operationId: getFieldChoices
      parameters:
        - name: formPath
          type: string
          in: query
          required: true
          description: Form Path
        - name: fieldName
          type: string
          in: query
          required: true
          description: Name of the searchable field
      consumes:
        - application/json
      produces:
        - application/json
      responses:
        '200':
          description: OK
          schema:
              type: array
              items:
                $ref: '#/definitions/choices'
definitions:
  choices:
    type: object
    properties:
      name:
        type: string
      value:
        type: string
