Trellix Web Gateway · API Governance Rules
Trellix Web Gateway API Rules
Spectral linting rules defining API design standards and conventions for Trellix Web Gateway.
12 Rules
error 2
warn 8
info 2
Rule Categories
twg
Rules
warn
twg-operation-id-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
warn
twg-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
twg-security-defined
All non-login operations must define security requirements
$.paths[?([email protected]('/login$'))][get,post,put,patch,delete]
error
twg-response-200-get
All GET operations must define a 200 response
$.paths[*].get
warn
twg-response-401-defined
Authenticated operations should define a 401 response
$.paths[*][get,post,put,delete]
warn
twg-tag-defined
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
warn
twg-server-variables
Server URLs with variables must define those variables
$.servers[*].variables[*]
info
twg-cookie-auth
Web Gateway uses session cookie authentication via JSESSIONID
$.components.securitySchemes.cookieAuth
warn
twg-path-kebab-case
API paths should use lowercase letters and hyphens
$.paths[*]~
warn
twg-delete-response
DELETE operations should return 200 or 204
$.paths[*].delete
warn
twg-post-request-body
POST operations that create resources should define a request body
$.paths[*].post
info
twg-xml-content-type
Configuration endpoints use XML content type
$.paths['/configuration'].get.responses.200.content