/api/v1/classes/search:
  description: pf::UnifiedApi::Controller::Classes
  post:
    description: Search all items.
    operationId: api.v1.Classes.search
    parameters: []
    requestBody:
      content:
        application/json:
          example:
            cursor: 0
            fields:
            - auto_enable
            - button_text
            - delay_by
            - description
            - enabled
            - external_command
            - grace_period
            - max_enable_url
            - max_enables
            - priority
            - redirect_url
            - security_event_id
            - target_category
            - template
            - vclose
            - vlan
            - window
            limit: 25
            query:
              op: and
              values:
              - op: or
                values:
                - field: auto_enable
                  op: contains
                  value: foo
                - field: button_text
                  op: contains
                  value: foo
                - field: delay_by
                  op: contains
                  value: foo
                - field: description
                  op: contains
                  value: foo
                - field: enabled
                  op: contains
                  value: foo
                - field: external_command
                  op: contains
                  value: foo
                - field: grace_period
                  op: contains
                  value: foo
                - field: max_enable_url
                  op: contains
                  value: foo
                - field: max_enables
                  op: contains
                  value: foo
                - field: priority
                  op: contains
                  value: foo
                - field: redirect_url
                  op: contains
                  value: foo
                - field: security_event_id
                  op: contains
                  value: foo
                - field: target_category
                  op: contains
                  value: foo
                - field: template
                  op: contains
                  value: foo
                - field: vclose
                  op: contains
                  value: foo
                - field: vlan
                  op: contains
                  value: foo
                - field: window
                  op: contains
                  value: foo
            sort:
            - security_event_id ASC
          schema:
            allOf:
            - $ref: '#/components/schemas/Search'
            - properties:
                cursor:
                  required: false
                  type: string
                fields:
                  items:
                    enum:
                    - auto_enable
                    - button_text
                    - delay_by
                    - description
                    - enabled
                    - external_command
                    - grace_period
                    - max_enable_url
                    - max_enables
                    - priority
                    - redirect_url
                    - security_event_id
                    - target_category
                    - template
                    - vclose
                    - vlan
                    - window
                    type: string
                  required: true
                  type: array
                limit:
                  maximum: 1000
                  minimum: 1
                  required: false
                  type: integer
                sort:
                  items:
                    enum:
                    - auto_enable ASC
                    - auto_enable DESC
                    - button_text ASC
                    - button_text DESC
                    - delay_by ASC
                    - delay_by DESC
                    - description ASC
                    - description DESC
                    - enabled ASC
                    - enabled DESC
                    - external_command ASC
                    - external_command DESC
                    - grace_period ASC
                    - grace_period DESC
                    - max_enable_url ASC
                    - max_enable_url DESC
                    - max_enables ASC
                    - max_enables DESC
                    - priority ASC
                    - priority DESC
                    - redirect_url ASC
                    - redirect_url DESC
                    - security_event_id ASC
                    - security_event_id DESC
                    - target_category ASC
                    - target_category DESC
                    - template ASC
                    - template DESC
                    - vclose ASC
                    - vclose DESC
                    - vlan ASC
                    - vlan DESC
                    - window ASC
                    - window DESC
                    type: string
                  required: true
                  type: array
              required:
              - fields
      required: true
    responses:
      '200':
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClassesList'
      '401':
        $ref: '#/components/responses/Forbidden'
      '404':
        $ref: '#/components/responses/BadRequest'
      '409':
        $ref: '#/components/responses/Duplicate'
      '422':
        $ref: '#/components/responses/UnprocessableEntity'
    tags:
    - Classes
