Taylor's University · API Governance Rules
Taylor's University API Rules
Spectral linting rules defining API design standards and conventions for Taylor's University.
7 Rules
error 2
warn 4
info 1
Rule Categories
taylors
Rules
warn
taylors-info-contact
API info object should declare a contact for the Taylor's Library.
$.info
error
taylors-server-https
Servers must use HTTPS (Koha catalog is served over TLS).
$.servers[*].url
error
taylors-operation-id
Every operation should declare an operationId.
$.paths[*][get,post,put,patch,delete]
warn
taylors-operation-tags
Every operation should be tagged with its Koha resource collection.
$.paths[*][get,post,put,patch,delete]
warn
taylors-snake-case-properties
Koha REST API object properties use snake_case identifiers (e.g. patron_id, checkout_date, library_id).
$.components.schemas[*].properties.*~
info
taylors-id-suffix-integer
Internal resource identifiers ending in _id (patron_id, item_id, checkout_id, hold_id, biblio_id) are integers.
$.components.schemas[*].properties[?(@property.match(/^(patron|item|checkout|hold|biblio)_id$/))]
warn
taylors-auth-required
Patron and circulation collection endpoints must document a 401 Unauthorized response (anonymous access is rejected).
$.paths[*][get,post,put,patch,delete].responses