Country State City API · API Governance Rules
Country State City API API Rules
Spectral linting rules defining API design standards and conventions for Country State City API.
7 Rules
error 4
warn 3
Rule Categories
csc
Rules
error
csc-info-title
API title must mention Country State City.
$.info.title
warn
csc-server-base-url
Servers must reference https://api.countrystatecity.in/v1.
$.servers[*].url
error
csc-api-key-security
Spec must define an X-CSCAPI-KEY API key security scheme.
$.components.securitySchemes
warn
csc-global-security
API must apply the API key security globally.
$
error
csc-operation-id
Every operation must define an operationId.
$.paths.*.get
error
csc-operation-tags
Every operation must define at least one tag.
$.paths.*.get
warn
csc-401-response
All authenticated operations should document a 401 response.
$.paths.*.get.responses