Track-POD · API Governance Rules

Track-POD API Rules

Spectral linting rules defining API design standards and conventions for Track-POD.

7 Rules error 3 warn 3 info 1
View Rules File View on GitHub

Rule Categories

track

Rules

error
track-pod-api-key-required
All operations must require the X-API-KEY API key security scheme.
$.paths[*][?(@property === 'get' || @property === 'post' || @property === 'put' || @property === 'delete' || @property === 'patch')]
warn
track-pod-pascalcase-paths
Track-POD paths use PascalCase resource segments (e.g. /Order, /VehicleCheck, /Route/Code/{code}).
$.paths
error
track-pod-operation-summary
Every operation must have a non-empty summary; Track-POD summaries use Title Case.
$.paths[*][get,post,put,delete,patch]
warn
track-pod-summary-title-case
Operation summaries should start with a capitalised verb (Get, Add, Update, Delete, Set, Complete, Reject).
$.paths[*][get,post,put,delete,patch].summary
error
track-pod-tag-each-operation
Every operation must declare at least one tag (Address, Driver, Order, RejectReason, Route, Test, Vehicle, VehicleCheck).
$.paths[*][get,post,put,delete,patch]
warn
track-pod-error-response
Mutating operations must document at least one non-2xx response.
$.paths[*][post,put,delete,patch].responses
info
track-pod-no-deprecated-status
Avoid the deprecated /Order/*/Status PUT endpoints; prefer /Order/*/Complete or /Order/*/Reject.
$.paths[?(@property =~ /\/Order\/(Number|Id|TrackId)\/[^/]+\/Status$/)]

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas
formats:
  - oas3
functions: []
rules:
  track-pod-api-key-required:
    description: All operations must require the X-API-KEY API key security scheme.
    message: "{{description}}; missing or empty security on this operation."
    severity: error
    given: $.paths[*][?(@property === 'get' || @property === 'post' || @property === 'put' || @property === 'delete' || @property === 'patch')]
    then:
      field: security
      function: truthy

  track-pod-pascalcase-paths:
    description: Track-POD paths use PascalCase resource segments (e.g. /Order, /VehicleCheck, /Route/Code/{code}).
    message: "Path segment is not PascalCase: {{value}}"
    severity: warn
    given: $.paths
    then:
      field: '@key'
      function: pattern
      functionOptions:
        match: '^/[A-Z][A-Za-z]+(/[A-Za-z{}/-]+)*$'

  track-pod-operation-summary:
    description: Every operation must have a non-empty summary; Track-POD summaries use Title Case.
    message: "Operation summary missing"
    severity: error
    given: $.paths[*][get,post,put,delete,patch]
    then:
      field: summary
      function: truthy

  track-pod-summary-title-case:
    description: Operation summaries should start with a capitalised verb (Get, Add, Update, Delete, Set, Complete, Reject).
    message: "Summary should start with a Track-POD verb"
    severity: warn
    given: $.paths[*][get,post,put,delete,patch].summary
    then:
      function: pattern
      functionOptions:
        match: '^(Get|Add|Update|Delete|Set|Complete|Reject|Start|Close|Confirm|List|Test)\b'

  track-pod-tag-each-operation:
    description: Every operation must declare at least one tag (Address, Driver, Order, RejectReason, Route, Test, Vehicle, VehicleCheck).
    severity: error
    given: $.paths[*][get,post,put,delete,patch]
    then:
      field: tags
      function: truthy

  track-pod-error-response:
    description: Mutating operations must document at least one non-2xx response.
    severity: warn
    given: $.paths[*][post,put,delete,patch].responses
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          anyOf:
            - required: ['400']
            - required: ['401']
            - required: ['403']
            - required: ['404']
            - required: ['409']
            - required: ['429']
            - required: ['default']

  track-pod-no-deprecated-status:
    description: Avoid the deprecated /Order/*/Status PUT endpoints; prefer /Order/*/Complete or /Order/*/Reject.
    severity: info
    given: $.paths[?(@property =~ /\/Order\/(Number|Id|TrackId)\/[^/]+\/Status$/)]
    then:
      field: deprecated
      function: truthy

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/track-pod-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.