> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eventor.run/llms.txt
> Use this file to discover all available pages before exploring further.

# Listar resultados

> Lista paginada



## OpenAPI

````yaml /openapi.json get /events/{event}/results
openapi: 3.1.0
info:
  title: Eventor Management API v1
  version: 1.0.0
  description: >-
    Management API do Eventor (Fase 9) — configuração de evento ponta a ponta
    por agente/CLI. Autenticação: `Authorization: Bearer <api_key>` com escopo
    `manage`.


    Envelope de sucesso: `{data}` (item) e `{data,meta,links}` (coleção
    paginada).

    Envelope de erro: `{error,message,details}`.
servers:
  - url: http://localhost/api/v1
security:
  - bearerAuth: []
paths:
  /events/{event}/results:
    get:
      tags:
        - Results
      summary: Listar resultados
      description: Lista paginada
      operationId: results.index
      parameters:
        - name: event
          in: path
          required: true
          schema:
            type: string
        - name: race_id
          in: query
          schema:
            type: integer
            default: 0
        - name: category_id
          in: query
          schema:
            type: integer
            default: 0
        - name: status
          in: query
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ResultResource'
                  meta:
                    type: object
                    properties:
                      page:
                        type: integer
                      per_page:
                        type: integer
                      total:
                        type: integer
                      last_page:
                        type: integer
                    required:
                      - page
                      - per_page
                      - total
                      - last_page
                  links:
                    type: object
                    properties:
                      next:
                        type:
                          - string
                          - 'null'
                      prev:
                        type:
                          - string
                          - 'null'
                    required:
                      - next
                      - prev
                required:
                  - data
                  - meta
                  - links
        '401':
          description: API key ausente ou inválida.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: A API key não tem o escopo `manage`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Recurso não encontrado neste hub.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    ResultResource:
      type: object
      properties:
        id:
          type: integer
          description: |-
            `id` = id interno da Eventor; `external_id` = referência LIVRE do
            cronometrista (o que ele mandou no import; não é chave de match).
        external_id:
          type:
            - string
            - 'null'
        registration_id:
          type:
            - integer
            - 'null'
        name:
          type:
            - string
            - 'null'
        bib:
          type:
            - string
            - 'null'
        event_id:
          type: integer
        race_id:
          type: integer
        category_id:
          type: integer
        modality_id:
          type: string
          description: Modalidade vem da categoria (results não tem coluna própria).
        modality_name:
          type: string
        athlete_id:
          type:
            - integer
            - 'null'
        status:
          type: string
        net_time:
          type:
            - string
            - 'null'
        gun_time:
          type:
            - string
            - 'null'
        start_time:
          type: string
        finish_time:
          type: string
        overall_position:
          type:
            - integer
            - 'null'
        category_position:
          type:
            - integer
            - 'null'
        gender_position:
          type:
            - integer
            - 'null'
        average_pace:
          type:
            - string
            - 'null'
        average_speed:
          type:
            - string
            - 'null'
        lap_count:
          type:
            - integer
            - 'null'
        total_distance:
          type:
            - string
            - 'null'
        observation:
          type:
            - string
            - 'null'
        import_source:
          type:
            - string
            - 'null'
        last_imported_at:
          type: string
        match_conflict_data:
          type:
            - array
            - 'null'
          items: {}
        external_data:
          type:
            - array
            - 'null'
          items: {}
        published_at:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
      required:
        - id
        - external_id
        - registration_id
        - name
        - bib
        - event_id
        - race_id
        - category_id
        - modality_id
        - modality_name
        - athlete_id
        - status
        - net_time
        - gun_time
        - start_time
        - finish_time
        - overall_position
        - category_position
        - gender_position
        - average_pace
        - average_speed
        - lap_count
        - total_distance
        - observation
        - import_source
        - last_imported_at
        - match_conflict_data
        - external_data
        - published_at
        - created_at
        - updated_at
      title: ResultResource
    ApiError:
      type: object
      properties:
        error:
          type: string
          description: >-
            Código machine-parseable (ex.: validation_failed, forbidden_scope,
            not_found).
        message:
          type: string
          description: Mensagem legível (português).
        details:
          type:
            - object
            - 'null'
          description: 'Detalhes opcionais (ex.: erros de validação por campo).'
          additionalProperties: {}
      required:
        - error
        - message
      title: ApiError
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        API key do hub com escopo `manage`. Header: `Authorization: Bearer
        <api_key>`.
      scheme: bearer

````