SAP Commerce Cloud · API Governance Rules
SAP Commerce Cloud API Rules
Spectral linting rules defining API design standards and conventions for SAP Commerce Cloud.
10 Rules
warn 6
info 4
Rule Categories
sap
Rules
warn
sap-commerce-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
warn
sap-commerce-operation-id-camel-case
OperationIds must use camelCase
$.paths[*][*].operationId
warn
sap-commerce-tags-title-case
All tags must use Title Case
$.tags[*].name
warn
sap-commerce-oauth2-required
Commerce Cloud APIs require OAuth 2.0 authentication
$.components.securitySchemes
warn
sap-commerce-response-200-schema
GET operations should define a response schema
$.paths[*].get.responses.200.content
info
sap-commerce-fields-parameter
Commerce Cloud APIs support a fields parameter for response shaping
$.paths[*].get.parameters
info
sap-commerce-pagination-parameters
Collection endpoints should support currentPage and pageSize
$.paths[*].get.parameters
warn
sap-commerce-servers-with-variables
Commerce Cloud server URLs must include tenant, region, and baseSiteId variables
$.servers[*].variables
info
sap-commerce-b2b-b2c-support
Commerce APIs should support both B2B and B2C scenarios
$.info.description
info
sap-commerce-occ-versioning
Commerce APIs should use OCC v2 versioning
$.servers[*].url