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

# Busca uma versão específica de um serviço

> Retorna os detalhes de uma versão específica



## OpenAPI

````yaml https://raw.githubusercontent.com/prefeitura-rio/app-busca-search/refs/heads/main/docs/openapi-v3.json get /api/v1/admin/services/{id}/versions/{version}
openapi: 3.0.0
info:
  description: >-
    API para busca textual e vetorial usando Typesense e embeddings gerados via
    Google Gemini
  title: Mecanismo de Busca API
  termsOfService: http://swagger.io/terms/
  contact:
    name: Prefeitura do Rio de Janeiro
    url: https://prefeitura.rio
    email: contato@prefeitura.rio
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: https://services.pref.rio/app-busca-search
    description: Production server
  - url: https://services.staging.app.dados.rio/app-busca-search
    description: Staging server
security: []
paths:
  /api/v1/admin/services/{id}/versions/{version}:
    get:
      tags:
        - versions
      summary: Busca uma versão específica de um serviço
      description: Retorna os detalhes de uma versão específica
      parameters:
        - description: ID do serviço
          name: id
          in: path
          required: true
          schema:
            type: string
        - description: Número da versão
          name: version
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.ServiceVersion'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
      security:
        - bearerAuth: []
components:
  schemas:
    models.ServiceVersion:
      type: object
      required:
        - change_type
        - created_by
        - created_by_cpf
        - service_id
        - version_number
      properties:
        autor:
          type: string
          maxLength: 20000
        awaiting_approval:
          type: boolean
        canais_digitais:
          type: array
          items:
            type: string
        canais_presenciais:
          type: array
          items:
            type: string
        change_reason:
          type: string
          maxLength: 20000
        change_type:
          type: string
          enum:
            - create
            - update
            - publish
            - unpublish
            - delete
            - rollback
        changed_fields_json:
          description: Campos de mudança (armazenados como JSON string no Typesense)
          type: string
          maxLength: 20000
        created_at:
          type: integer
        created_by:
          type: string
          maxLength: 20000
        created_by_cpf:
          type: string
          maxLength: 20000
        custo_servico:
          type: string
          maxLength: 20000
        descricao_completa:
          type: string
          maxLength: 20000
        documentos_necessarios:
          type: array
          items:
            type: string
        embedding_hash:
          description: >-
            Hash do embedding para verificação (não armazenamos o embedding
            completo)
          type: string
          maxLength: 20000
        fixar_destaque:
          type: boolean
        id:
          type: string
        instrucoes_solicitante:
          type: string
          maxLength: 20000
        is_free:
          type: boolean
        is_rollback:
          type: boolean
        legislacao_relacionada:
          type: array
          items:
            type: string
        nome_servico:
          description: Snapshot completo do serviço (sem embedding para economizar espaço)
          type: string
          maxLength: 20000
        orgao_gestor:
          type: array
          items:
            type: string
        previous_version:
          type: integer
        publico_especifico:
          type: array
          items:
            type: string
        published_at:
          type: integer
        resultado_solicitacao:
          type: string
          maxLength: 20000
        resumo:
          type: string
          maxLength: 20000
        rollback_to_version:
          type: integer
        search_content:
          type: string
          maxLength: 20000
        service_id:
          type: string
          maxLength: 20000
        servico_nao_cobre:
          type: string
          maxLength: 20000
        status:
          type: integer
        tema_geral:
          type: string
          maxLength: 20000
        tempo_atendimento:
          type: string
          maxLength: 20000
        version_number:
          type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````