KonbiniAPI · API Governance Rules
KonbiniAPI API Rules
Spectral linting rules defining API design standards and conventions for KonbiniAPI.
10 Rules
error 7
warn 3
Rule Categories
konbiniapi
Rules
error
konbiniapi-paths-must-be-versioned
All paths must be prefixed with /v1/ for KonbiniAPI versioning.
$.paths
error
konbiniapi-paths-must-include-platform
All paths must include the platform segment (instagram or tiktok).
$.paths
error
konbiniapi-operations-must-be-get
KonbiniAPI is a read-only data layer. Only GET operations are supported.
$.paths.*
warn
konbiniapi-operation-summary-title-case
Operation summaries must use Title Case.
$.paths.*.get.summary
error
konbiniapi-operation-must-have-operationid
Every operation must have an operationId in camelCase.
$.paths.*.get
warn
konbiniapi-response-must-include-credit-headers
Successful responses must declare X-Credits-Remaining and X-Credits-Used headers.
$.paths.*.get.responses["200"]
error
konbiniapi-must-use-bearer-auth
Global security must use a Bearer (HTTP) scheme.
$.components.securitySchemes
error
konbiniapi-server-must-be-https
All servers must use HTTPS.
$.servers[*].url
warn
konbiniapi-schemas-pascal-case
Component schema names must use PascalCase.
$.components.schemas
error
konbiniapi-must-tag-operations
Every operation must be tagged with Instagram or TikTok.
$.paths.*.get.tags