TD SYNNEX · API Governance Rules
TD SYNNEX API Rules
Spectral linting rules defining API design standards and conventions for TD SYNNEX.
12 Rules
error 2
warn 9
info 1
Rule Categories
tdsynnex
Rules
warn
tdsynnex-path-versioning
All API paths should be versioned with /v3/ prefix
$.paths[*]~
warn
tdsynnex-path-account-id
Partner resource paths should include {accountId} parameter
$.paths[/v3/*]~
error
tdsynnex-operation-ids-required
All operations must have operationId defined
$.paths[*][get,post,put,delete,patch]
warn
tdsynnex-operation-ids-camelcase
operationId values should use camelCase
$.paths[*][get,post,put,delete,patch].operationId
warn
tdsynnex-tags-defined
All operations should be tagged
$.paths[*][get,post,put,delete,patch]
warn
tdsynnex-security-defined
Operations (except token endpoint) should require OAuth2
$.paths[/v3/*][get,post,put,delete,patch]
error
tdsynnex-responses-success
GET operations should define a 200 success response
$.paths[*].get.responses
warn
tdsynnex-post-responses-201
POST create operations should return 201 Created
$.paths[/v3/accounts/{accountId}/customers,/v3/accounts/{accountId}/orders,/v3/accounts/{accountId}/customers/{customerId}/carts].post.responses
warn
tdsynnex-error-401
Authenticated operations should define 401 Unauthorized
$.paths[/v3/*][get,post,put,delete,patch].responses
warn
tdsynnex-summary-title-case
Operation summaries should use Title Case
$.paths[*][get,post,put,delete,patch].summary
warn
tdsynnex-request-body-content-type
POST and PUT operations should specify application/json content type
$.paths[*][post,put].requestBody.content
info
tdsynnex-pagination-parameters
List operations should support pagination parameters
$.paths[*].get