Salla · API Governance Rules
Salla API Rules
Spectral linting rules defining API design standards and conventions for Salla.
9 Rules
error 3
warn 3
info 3
Rule Categories
salla
Rules
error
salla-base-url
Salla Merchant and Shipping APIs must be served from https://api.salla.dev/admin/v2.
$.servers[*].url
error
salla-oauth-security
Endpoints must use OAuth 2.0 security defined under components.securitySchemes.
$.components.securitySchemes
warn
salla-snake-case-paths
Salla paths and path parameters use snake_case.
$.paths[*]~
warn
salla-operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][get,post,put,patch,delete].summary
warn
salla-operation-id-camel-case
Operation IDs must be camelCase.
$.paths[*][get,post,put,patch,delete].operationId
info
salla-pagination-query-params
List endpoints should accept `page` and `per_page` query parameters.
$.paths[*].get.parameters[?(@.in=='query' && @.name=='page')]
info
salla-error-response-envelope
Salla responses are wrapped in an envelope with `status`, `success`, and either `data` or `error`.
$.components.schemas.Error.properties
error
salla-no-secret-in-path
Never put secrets (api keys, tokens) in URL paths.
$.paths[*]~
info
salla-arabic-language-support
Document Accept-Language and Content-Language header support on responses.
$.paths[*][get,post,put,patch].responses['200']