GitClear Code Introspection API

The Code Introspection API from GitClear — 1 operation(s) for code introspection.

OpenAPI Specification

gitclear-code-introspection-api-openapi.yml Raw ↑
openapi: 3.0.1
info:
  title: GitClear Public API Tokens Code Introspection API
  description: Public REST API for GitClear code and commit analytics. Pull Diff Delta reports and underlying data audits, manage repository imports, trace per-line code history, and administer developers and teams. All endpoints require a Bearer API token. Paths and parameters reflect GitClear's published API reference; request/response schemas beyond the documented parameters are not fully enumerated by the provider and are modeled conservatively here.
  termsOfService: https://www.gitclear.com/terms
  contact:
    name: GitClear Support
    url: https://www.gitclear.com/api_reference
  version: '1.0'
servers:
- url: https://www.gitclear.com/api/v1
security:
- bearerAuth: []
tags:
- name: Code Introspection
paths:
  /code_introspections/line_history:
    get:
      operationId: getLineHistory
      tags:
      - Code Introspection
      summary: Retrieve per-line version history from a repository.
      parameters:
      - name: resource_path
        in: query
        required: true
        schema:
          type: string
      - name: file_path
        in: query
        required: true
        schema:
          type: string
      - name: sha
        in: query
        required: true
        schema:
          type: string
      - name: line_number_after
        in: query
        required: false
        schema:
          type: integer
      - name: line_number_before
        in: query
        required: false
        schema:
          type: integer
      - name: max_hops
        in: query
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    Unauthorized:
      description: Missing or invalid API token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        response_em:
          type: string
          description: Response status enum.
        response_detail:
          type: string
          description: Human-readable response message.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: GitClear API token passed as a Bearer token in the Authorization header.