ThingsBoard · API Governance Rules
ThingsBoard API Rules
Spectral linting rules defining API design standards and conventions for ThingsBoard.
6 Rules
error 2
warn 4
Rule Categories
bearer
components
operation
thingsboard
use
Rules
warn
operation-summary-title-case
Operation summaries should use Title Case (ThingsBoard convention).
$.paths[*][get,post,put,delete,patch].summary
error
operation-tag-required
Every operation must declare at least one tag (controller).
$.paths[*][get,post,put,delete,patch]
error
thingsboard-path-prefix
All ThingsBoard REST endpoints must live under /api/.
$.paths
warn
use-uuid-for-ids
Path parameters named *Id should be UUID format.
$.paths[*][*].parameters[?(@.name && @.name.match(/Id$/))].schema
warn
components-schemas-named
Component schemas must use PascalCase.
$.components.schemas
warn
bearer-or-apikey-security
Operations should require bearerAuth or apiKeyAuth (excluding the login endpoint).
$.paths[?([email protected]('/auth/login'))][*].security