Red5 · API Governance Rules
Red5 API Rules
Spectral linting rules defining API design standards and conventions for Red5.
11 Rules
error 3
warn 8
Rule Categories
red5
Rules
error
red5-access-token-parameter
Red5 Pro Server API endpoints authenticate via an accessToken query parameter. All protected endpoints must define this parameter.
$.components.parameters.accessTokenParam
error
red5-operation-id-required
All Red5 API operations must include an operationId for SDK generation, tooling integration, and API client code generation.
$.paths[*][get,post,put,delete,patch]
warn
red5-summary-title-case
Operation summaries must use Title Case formatting to match the Red5 Pro API documentation standards.
$.paths[*][get,post,put,delete,patch].summary
warn
red5-operation-description
All Red5 API operations must include descriptions explaining what the endpoint does and the parameters it accepts.
$.paths[*][get,post,put,delete,patch]
warn
red5-tags-required
All operations must include at least one tag to organize them in API documentation and client libraries.
$.paths[*][get,post,put,delete,patch]
warn
red5-unauthorized-response
All Red5 API endpoints that require authentication must define a 401 Unauthorized response for invalid or missing access tokens.
$.paths[*][get,post,put,delete,patch].responses
warn
red5-not-found-response
Endpoints that access specific resources (with path parameters like appName and streamName) must define a 404 response.
$.paths[*~@contains('{')][get,post,put,delete].responses
error
red5-server-port
Red5 Pro Server API is served at port 5080. The server URL must reflect this to ensure clients connect to the correct port.
$.servers[?(@.description === 'Red5 Pro Server')]
warn
red5-parameter-types
All parameters must define their data type schema for type validation and documentation generation.
$.paths[*][get,post,put,delete,patch].parameters[*]
warn
red5-response-schema
All 200 responses should reference a defined schema to document the structure of the returned data.
$.paths[*][get].responses[200].content.application/json
warn
red5-action-paths
Action path segments (e.g., /action/startrecord) must use lowercase to follow Red5 API naming conventions.
$.paths[*~@contains('/action/')]