Indian Institute of Technology Kanpur · API Governance Rules
Indian Institute of Technology Kanpur API Rules
Spectral linting rules defining API design standards and conventions for Indian Institute of Technology Kanpur.
6 Rules
error 1
warn 3
info 2
Rule Categories
iitk
Rules
error
iitk-operation-operationId
Operations must define an operationId.
$.paths[*][get,post,put,delete,patch]
warn
iitk-operation-tags
Operations should be grouped under at least one tag.
$.paths[*][get,post,put,delete,patch]
warn
iitk-path-snake-case
Path segments should be lower snake_case (Koha convention).
$.paths[*]~
info
iitk-public-prefix-known
Document that user-facing discovery endpoints are namespaced under /public.
$.paths[*]~
info
iitk-pagination-params
List operations should expose _page / _per_page pagination parameters.
$.paths[*].get.parameters[?(@.in=='query')].name
warn
iitk-error-response-documented
Non-2xx responses should be documented with a description.
$.paths[*][*].responses[?(@property >= '400')]