Supaglue · API Governance Rules
Supaglue API Rules
Spectral linting rules defining API design standards and conventions for Supaglue.
10 Rules
warn 4
info 6
Rule Categories
supaglue
Rules
warn
supaglue-apikey-header-security
Supaglue APIs use x-api-key header authentication. All endpoints should define security with the ApiKeyAuth scheme.
$.paths[*][get,post,put,patch,delete]
info
supaglue-customer-id-header
Supaglue CRM, Engagement, and Ticketing API operations require a x-customer-id header to identify the customer context. Operations accessing customer data should document this parameter.
$.paths[*][get,post,put,patch,delete].parameters[*]
warn
supaglue-summaries-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
warn
supaglue-operation-ids-camel-case
Operation IDs should use camelCase
$.paths[*][get,post,put,patch,delete].operationId
info
supaglue-provider-name-header
Supaglue CRM and Engagement APIs require x-provider-name header to route requests to the correct provider (e.g. salesforce, hubspot). Should be documented in operation parameters.
$.paths[*][get,post,put,patch,delete].parameters
info
supaglue-upsert-paths
Upsert operations use /_upsert subpath convention (e.g. /contacts/_upsert, /accounts/_upsert). These should use POST method.
$.paths[*~/_upsert].post
info
supaglue-search-paths
Search operations use /_search subpath convention (e.g. /contacts/_search). These should use POST method with a request body.
$.paths[*~/_search].post
warn
supaglue-info-contact
APIs must define contact information
$.info
info
supaglue-pagination-parameters
List endpoints should support cursor-based pagination. GET operations on collection resources should document pagination parameters.
$.paths[?([email protected](/_upsert|_search|_update|{.*}$/))].get.parameters
info
supaglue-400-error-response
Operations should document 400 Bad Request error responses
$.paths[*][get,post,put,patch,delete].responses