start.openApiSpec Start drafted

OpenAPI Spec — public REST 진입점

dartlab public REST API 의 OpenAPI 3.0 YAML 사양 — 외부 통합 진입점 표준. engines/recipes 호출 REST 추상화.

이 스킬

OpenAPI Spec — public REST 진입점

dartlab public REST API 의 OpenAPI 3.0 YAML 사양 — 외부 통합 진입점 표준. engines/recipes 호출 REST 추상화.

Start drafted start.openApiSpec

이어 가기

절차

실행 순서

  1. 1

    name: code

  2. 2

    name: topic

  3. 3

    YAML 정합 (swagger-cli validate).

  4. 4

    모든 endpoint test 통과 (smoke).

  5. 5

    rate limit metric.

endpoint 카탈로그

경로method매핑
/v1/company/{@html String.fromCharCode(123)}code{@html String.fromCharCode(125)}/show/{@html String.fromCharCode(123)}topic{@html String.fromCharCode(125)}GETCompany.show
/v1/company/{@html String.fromCharCode(123)}code{@html String.fromCharCode(125)}/analysis/{@html String.fromCharCode(123)}axis{@html String.fromCharCode(125)}GETCompany.analysis
/v1/scan/{@html String.fromCharCode(123)}axis{@html String.fromCharCode(125)}GETscan
/v1/macro/{@html String.fromCharCode(123)}axis{@html String.fromCharCode(125)}GETdartlab.macro
/v1/quant/{@html String.fromCharCode(123)}axis{@html String.fromCharCode(125)}GETdartlab.quant
/v1/searchGETdartlab.search
/v1/recipe/{@html String.fromCharCode(123)}id{@html String.fromCharCode(125)}/executePOSTrecipe execute
/v1/skillsGETlistSkills
/v1/skill/{@html String.fromCharCode(123)}id{@html String.fromCharCode(125)}GETgetSkill

OpenAPI 3.0 YAML (snippet)

openapi: 3.0.0
info:
  title: dartlab API
  version: 0.10.3
paths:
  /v1/company/{code}/show/{topic}:
    get:
      parameters:
        - name: code
          in: path
          required: true
          schema: {type: string, pattern: "^[0-9]{6}$"}
        - name: topic
          in: path
          required: true
          schema: {type: string, enum: [BS, IS, CF, CIS, SCE]}
      responses:
        200:
          description: success
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CompanyShowResult"

강행 룰

  1. 모든 endpoint OpenAPI YAML 작성 (자동 생성 X — 사람 작성).
  2. error code 표준 (400/401/404/429/500).
  3. rate limit (per-API-key, per-IP).
  4. response 단위 dateRef + evidence ref 동행.

기본 검증

  • YAML 정합 (swagger-cli validate).
  • 모든 endpoint test 통과 (smoke).
  • rate limit metric.

런타임

실행 환경별 호환성

환경상태비고 / 제한
Local Python limited
Server limited
MCP limited
Web AI limited
Pyodide limited