openapi: 3.0.3
info:
  title: Apex Performance Offload API (Dynamic)
  version: "1.0.0"
servers:
  - url: https://apex-zombie-killer.herokuapp.com
paths:
  /ext/convertedFromApex/run:
    post:
      operationId: extRun_convertedFromApex
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                payload: { type: object }
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExecutionAudit'
  /ext/Demo/run:
    post:
      operationId: extRun_Demo
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                payload: { type: object }
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExecutionAudit'
  /ext/ConvertedFromApex/run:
    post:
      operationId: extRun_ConvertedFromApex
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                payload: { type: object }
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExecutionAudit'
components:
  schemas:
    ExecutionAudit:
      type: object
      properties:
        id: { type: string, format: uuid }
        codeId: { type: string, format: uuid }
        codeName: { type: string }
        startedAt: { type: string, format: date-time }
        completedAt: { type: string, format: date-time, nullable: true }
        status: { type: string }
        error: { type: string }
        inputJson: { type: string }
