Backpack · API Governance Rules
Backpack API Rules
Spectral linting rules defining API design standards and conventions for Backpack.
6 Rules
warn 3
info 3
Rule Categories
backpack
Rules
warn
backpack-parameter-camelcase
Backpack request and response field names use lowerCamelCase.
$.paths..parameters[?(@.in == 'query')].name
warn
backpack-path-prefix
Backpack exposes the trading API under /api/v1/ and the wallet/history API under /wapi/v1/.
$.paths
warn
backpack-signed-request-headers
Authenticated operations require X-API-Key, X-Signature, X-Timestamp, and X-Window headers.
$.paths.*[?( @.security && @.security.length > 0 )]
info
backpack-instruction-binding
Authenticated operations should document the Backpack signing instruction.
$.paths.*[?( @.security && @.security.length > 0 )]
info
backpack-summary-titlecase
Operation summaries should be Title Case sentences ending in a period.
$.paths.*.*.summary
info
backpack-pagination-limit-offset
List endpoints should expose `limit` (max 1000) and `offset` query parameters for pagination.
$.paths[?(@property =~ /s$/)].get.parameters