Shutterstock · API Governance Rules
Shutterstock API Rules
Spectral linting rules defining API design standards and conventions for Shutterstock.
10 Rules
error 6
warn 3
info 1
Rule Categories
shutterstock
Rules
error
shutterstock-operation-tags
All operations must have at least one tag
$.paths[*][*]
error
shutterstock-operation-summary
All operations must have a summary
$.paths[*][*]
error
shutterstock-v2-path-prefix
All API paths must begin with /v2
$.paths
error
shutterstock-response-200
All GET operations must have a 200 response
$.paths[*].get.responses
error
shutterstock-oauth-security
The API must define OAuth 2.0 security scheme
$.components.securitySchemes
warn
shutterstock-search-query-param
Search endpoints must have a query parameter
$.paths[?(@property.includes('search'))].get.parameters[?(@.name == 'query')]
warn
shutterstock-license-operation
License endpoints must use POST method
$.paths[?(@property.includes('licenses'))].post
warn
shutterstock-collection-naming
Collection endpoints should follow consistent naming
$.paths[?(@property.includes('collections'))][*]
error
shutterstock-operation-id
All operations must have an operationId
$.paths[*][*]
info
shutterstock-page-parameter
List endpoints should support pagination
$.paths[*].get.parameters