Перейти к содержимому

API: specs

Статус: GA Доступ: по токену контракт API: 0.3.0 · capability 2026-09-03.1 Открыть как Markdown Открыть в Claude Открыть в ChatGPT

List Specs

Открыть отдельной страницей →

: list all specs sorted by id descending.

Авторизация: нужен Authorization: Bearer <token>

Ответы:

КодСмыслТело
200Successful ResponseSpecListResponse
401Missing or invalid authentication credentialsErrorResponse

Get Spec

Открыть отдельной страницей →

: detail with frontmatter, body, sections, tests_status.

Авторизация: нужен Authorization: Bearer <token>

ПараметрГдеОбязателенТипОписание
spec_idpathдаstring

Ответы:

КодСмыслТело
200Successful ResponseSpecDetailResponse
400Malformed spec id (expected SPEC-NNN)—
401Missing or invalid authentication credentialsErrorResponse
404Spec not found—
422Validation ErrorHTTPValidationError

Get Spec History

Открыть отдельной страницей →

: git log per file. Empty if.git not mounted.

Авторизация: нужен Authorization: Bearer <token>

ПараметрГдеОбязателенТипОписание
spec_idpathдаstring

Ответы:

КодСмыслТело
200Successful Responseмассив object
400Malformed spec id (expected SPEC-NNN)—
401Missing or invalid authentication credentialsErrorResponse
404Spec not found—
422Validation ErrorHTTPValidationError

Get Spec Progress

Открыть отдельной страницей →

Implementation progress grouped by spec section — each leaf §-anchor with its label and whether a test covers it (SPEC-NNN §X.Y citation).

Авторизация: нужен Authorization: Bearer <token>

ПараметрГдеОбязателенТипОписание
spec_idpathдаstring

Ответы:

КодСмыслТело
200Successful Responseмассив ProgressSection
400Malformed spec id (expected SPEC-NNN)—
401Missing or invalid authentication credentialsErrorResponse
404Spec not found—
422Validation ErrorHTTPValidationError

Patch Spec Status

Открыть отдельной страницей →

: status transition with validation.

Авторизация: нужен Authorization: Bearer <token>

ПараметрГдеОбязателенТипОписание
spec_idpathдаstring
Idempotency-KeyheaderнетstringOptional.

Тело запроса: application/json — схема StatusPatch

ПолеТипОбязательноОписание
statusstringдаOne of draft/review/accepted/implemented/obsolete

Ответы:

КодСмыслТело
200Successful Responseobject
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

Get Spec Tests

Открыть отдельной страницей →

Return individual pytest test-cases for this spec from junit.xml.

Авторизация: нужен Authorization: Bearer <token>

ПараметрГдеОбязателенТипОписание
spec_idpathдаstring

Ответы:

КодСмыслТело
200Successful Responseмассив SpecTestCase
400Malformed spec id (expected SPEC-NNN)—
401Missing or invalid authentication credentialsErrorResponse
404Spec not found—
422Validation ErrorHTTPValidationError