Mews · API Governance Rules
Mews API Rules
Spectral linting rules defining API design standards and conventions for Mews.
9 Rules
error 3
warn 5
Rule Categories
mews
Rules
warn
mews-info-contact
Mews specs must declare a partner-success contact.
$.info
warn
mews-server-base-url
Mews APIs use https://api.mews.com as the production server.
$.servers[*].url
warn
mews-paths-are-rpc-style
Mews paths follow /api/{surface}/v{n}/{resource}/{action} (RPC over HTTPS); reject pure REST collection paths.
$.paths
error
mews-operations-use-post
All Mews Open API operations are HTTP POST.
$.paths[*][?(@property !== 'parameters' && @property !== 'summary' && @property !== 'description')]
warn
mews-operation-id-is-camel
Mews operationIds use resource_action camelCase (e.g. reservations_getAll).
$.paths[*][*].operationId
warn
mews-operation-has-tag
Every Mews operation must be tagged with the surface name (Reservations, Customers, Bills, Services, etc.).
$.paths[*][*].tags
hint
mews-operation-summary-title-case
Operation summaries use Title Case.
$.paths[*][*].summary
error
mews-request-body-required
Every Mews operation has a JSON request body containing ClientToken/AccessToken/Client (Connector + POS + Loyalty) or ConfigurationId (Booking Engine + Distributor).
$.paths[*][*].requestBody
error
mews-response-200-defined
Mews operations document a 200 response.
$.paths[*][*].responses