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

# Issue abrufen

> Ruft Details zu einem bestimmten Issue ab



## OpenAPI

````yaml /de/api-reference/openapi.json get /issue/{issue_id}
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: >-
    API für die Interaktion mit den Scan- und
    Schwachstellenmanagement-Funktionen von Corgea
servers:
  - url: https://www.corgea.app/api/v1
    description: Produktionsserver
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /issue/{issue_id}:
    get:
      tags:
        - Issues
      summary: Issue abrufen
      description: Ruft Details zu einem bestimmten Issue ab
      operationId: getIssue
      parameters:
        - name: issue_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: ID des Issues
        - name: show_full_code
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: Gibt an, ob die Response den vollständigen Code enthalten soll
        - name: include_reachability
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: Details zur Endpoint-Erreichbarkeit des Issues einschließen.
        - name: generate_fix
          in: query
          required: false
          schema:
            type: boolean
            default: true
          description: >-
            Gibt an, ob vor der Rückgabe der Issue-Details ein geeigneter
            fehlender Fix generiert werden soll. Setzen Sie den Wert auf false,
            um den aktuellen Issue-Zustand zurückzugeben, ohne die
            Fix-Generierung zu starten.
      responses:
        '200':
          description: Issue-Details erfolgreich abgerufen
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
                  issue:
                    $ref: '#/components/schemas/IssueDetail'
        '404':
          description: Issue nicht gefunden
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: error
                  message:
                    type: string
                    example: Issue not found
components:
  schemas:
    IssueDetail:
      type: object
      properties:
        id:
          type: string
          format: uuid
        scan_id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - open
            - in_progress
            - fixed
            - accepted_risk
            - false_positive
        urgency:
          type: string
          enum:
            - critical
            - high
            - medium
            - low
        created_at:
          type: string
          format: date-time
        classification:
          type: object
          properties:
            id:
              type: string
              example: CWE-123
            name:
              type: string
              example: Vulnerability Name
            description:
              type: string
              nullable: true
        location:
          $ref: '#/components/schemas/IssueLocation'
        details:
          type: object
          properties:
            explanation:
              type: string
        auto_triage:
          $ref: '#/components/schemas/AutoTriage'
        auto_fix_suggestion:
          $ref: '#/components/schemas/AutoFixSuggestion'
        assigned_to:
          $ref: '#/components/schemas/AssignedTo'
        reachability:
          $ref: '#/components/schemas/IssueReachabilityDetail'
    IssueLocation:
      type: object
      properties:
        file:
          type: object
          properties:
            name:
              type: string
            language:
              type: string
            path:
              type: string
        project:
          type: object
          properties:
            name:
              type: string
            branch:
              type: string
            git_sha:
              type: string
        line_number:
          type: integer
    AutoTriage:
      type: object
      properties:
        false_positive_detection:
          type: object
          properties:
            status:
              type: string
              enum:
                - valid
                - false_positive
                - pending
            reasoning:
              type: string
    AutoFixSuggestion:
      type: object
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - fix_available
            - no_fix
            - false_positive
            - on_hold
            - unsupported
            - plan
          description: >-
            Aktuelle Fix-Verfügbarkeit. Beim Abrufen eines Issues wird
            standardmäßig ein geeigneter fehlender Fix generiert. Ist die
            Generierung deaktiviert oder wird kein Fix erzeugt, lautet der
            Status no_fix.
        patch:
          type: object
          properties:
            diff:
              type: string
              description: Patch im Unified-Diff-Format
            explanation:
              type: string
              description: Erläuterung, wie der Fix die Schwachstelle behebt
    AssignedTo:
      type: object
      nullable: true
      description: >-
        Dem Issue zugewiesener Benutzer oder null, wenn das Issue nicht
        zugewiesen ist.
      properties:
        id:
          type: string
          description: ID des zugewiesenen Benutzers.
        email:
          type: string
          format: email
          description: E-Mail-Adresse des zugewiesenen Benutzers.
        name:
          type: string
          nullable: true
          description: >-
            Anzeigename des zugewiesenen Benutzers oder null, wenn nicht
            verfügbar.
    IssueReachabilityDetail:
      type: object
      description: >-
        Details zur Endpoint-Erreichbarkeit, die zurückgegeben werden, wenn
        include_reachability true ist.
      properties:
        is_reachable:
          type: boolean
        endpoints:
          type: array
          items:
            $ref: '#/components/schemas/IssueReachabilityEndpoint'
    IssueReachabilityEndpoint:
      type: object
      properties:
        path:
          type: string
        method:
          type: string
        file_path:
          type: string
          nullable: true
        line_number:
          type: integer
          nullable: true
        pathways:
          type: array
          items:
            $ref: '#/components/schemas/IssueReachabilityPathway'
    IssueReachabilityPathway:
      type: object
      properties:
        pathway_id:
          type: string
        total_depth:
          type: integer
        confidence_score:
          type: number
        target:
          type: object
          additionalProperties: true
        steps:
          type: array
          items:
            $ref: '#/components/schemas/IssueReachabilityStep'
    IssueReachabilityStep:
      type: object
      properties:
        depth:
          type: integer
        file_path:
          type: string
        line_number:
          type: integer
        function_name:
          type: string
        target_line_number:
          type: integer
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: API-Key für die Authentifizierung
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2-Access-Token (JWT) im Authorization-Header

````