get:
  operationId: getAccessRequestApprovalSummary
  summary: Get the number of access-requests-approvals
  tags:
    - Access Request Approvals
  description: >-
    This endpoint returns the number of pending, approved and rejected access
    requests approvals. See "owner-id" query parameter below for authorization
    info.
  parameters:
    - in: query
      name: owner-id
      schema:
        type: string
      description: >-
        The id of the owner or approver identity of the approvals. If present,
        the value returns approval summary for the specified identity.
           * ORG_ADMIN users can call this with any identity ID value.
           * ORG_ADMIN user can also fetch all the approvals in the org, when
        owner-id is not used.
           * Non ORG_ADMIN users can only specify *me* or pass their own
        identity ID value.
      example: 2c91808568c529c60168cca6f90c1313
      required: false
    - in: query
      name: from-date
      schema:
        type: string
      description: >-
        From date is the date and time from which the results will be shown. It
        should be in a valid ISO-8601 format
      example: from-date=2020-03-19T19:59:11Z
      required: false
  responses:
    "200":
      description:
        Number of pending, approved, rejected access request approvals.
      content:
        application/json:
          schema:
            $ref: "../schemas/ApprovalSummary.yaml"
    "400":
      description: Client Error - Returned if the query parameter is invalid.
      content:
        application/json:
          schema:
            $ref: "../schemas/ErrorResponseDto.yaml"
    "401":
      $ref: "../responses/401.yaml"
    "403":
      $ref: "../responses/403.yaml"
    "429":
      $ref: "../responses/429.yaml"
    "500":
      $ref: "../responses/500.yaml"
