parcelLab · API Governance Rules

parcelLab API Rules

Spectral linting rules defining API design standards and conventions for parcelLab.

7 Rules error 2 warn 5
View Rules File View on GitHub

Rule Categories

parcellab

Rules

warn
parcellab-info-contact
parcelLab specs must point at parcelLab developer support.
$.info.contact
error
parcellab-versioned-paths
Operations live under /v4/ — the current API version.
$.paths.*~
warn
parcellab-operation-id-camel
Operation IDs use camelCase.
$.paths[*][*].operationId
warn
parcellab-summary-title-case
Operation summaries use Title Case.
$.paths[*][*].summary
error
parcellab-auth-token-header
Define the Parcellab-API-Token apiKey security scheme on the Authorization header.
$.components.securitySchemes
warn
parcellab-tag-set
Use the canonical parcelLab tag set.
$.tags[*].name
warn
parcellab-trailing-slash
parcelLab paths end with a trailing slash, matching the published API.
$.paths.*~

Spectral Ruleset

Raw ↑
extends: [[spectral:oas, recommended]]
documentationUrl: https://docs.parcellab.com/docs/developers/getting-started/api-reference
rules:
  parcellab-info-contact:
    description: parcelLab specs must point at parcelLab developer support.
    given: $.info.contact
    severity: warn
    then:
      - field: name
        function: truthy
      - field: url
        function: pattern
        functionOptions:
          match: "^https://docs\\.parcellab\\.com/.*"
  parcellab-versioned-paths:
    description: Operations live under /v4/ — the current API version.
    given: $.paths.*~
    severity: error
    then:
      function: pattern
      functionOptions:
        match: "^/v[0-9]+/"
  parcellab-operation-id-camel:
    description: Operation IDs use camelCase.
    given: $.paths[*][*].operationId
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]+$"
  parcellab-summary-title-case:
    description: Operation summaries use Title Case.
    given: $.paths[*][*].summary
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "^([A-Z][a-zA-Z0-9]*)(\\s+[A-Z/][a-zA-Z0-9/]*)*$"
  parcellab-auth-token-header:
    description: Define the Parcellab-API-Token apiKey security scheme on the Authorization header.
    given: $.components.securitySchemes
    severity: error
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          minProperties: 1
  parcellab-tag-set:
    description: Use the canonical parcelLab tag set.
    given: $.tags[*].name
    severity: warn
    then:
      function: enumeration
      functionOptions:
        values:
          - Orders
          - Events
          - Place Info
          - Promise
          - Returns
          - Campaigns
          - Surveys
  parcellab-trailing-slash:
    description: parcelLab paths end with a trailing slash, matching the published API.
    given: $.paths.*~
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: ".*/$"

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/parcellab-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 form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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