US Space Command · API Governance Rules

US Space Command API Rules

Spectral linting rules defining API design standards and conventions for US Space Command.

6 Rules error 2 warn 2 info 2
View Rules File View on GitHub

Rule Categories

space

Rules

info
space-track-path-class-prefix
Space-Track paths should follow /basicspacedata/query/class/{class}/ pattern
$.paths[*]~
error
space-track-operation-summary
All operations must have a summary
$.paths[*][*]
warn
space-track-operation-tags
Operations must have at least one tag
$.paths[*][*]
error
space-track-get-200-response
GET operations must define a 200 response
$.paths[*].get
info
space-track-format-path-param
Space-Track endpoints should include a format path parameter
$.paths[*]~
warn
space-track-401-response
Authenticated endpoints should document 401 response
$.paths[*].get

Spectral Ruleset

Raw ↑
extends: "spectral:oas"
rules:
  space-track-path-class-prefix:
    description: Space-Track paths should follow /basicspacedata/query/class/{class}/ pattern
    message: "Space-Track paths should use /basicspacedata/query/class/ prefix"
    severity: info
    given: "$.paths[*]~"
    then:
      function: pattern
      functionOptions:
        match: "^/(basicspacedata|ajaxauth|expandedspacedata)/"

  space-track-operation-summary:
    description: All operations must have a summary
    message: "Operation missing summary"
    severity: error
    given: "$.paths[*][*]"
    then:
      field: summary
      function: truthy

  space-track-operation-tags:
    description: Operations must have at least one tag
    message: "Operation has no tags"
    severity: warn
    given: "$.paths[*][*]"
    then:
      field: tags
      function: truthy

  space-track-get-200-response:
    description: GET operations must define a 200 response
    message: "GET operation missing 200 response"
    severity: error
    given: "$.paths[*].get"
    then:
      field: responses.200
      function: truthy

  space-track-format-path-param:
    description: Space-Track endpoints should include a format path parameter
    message: "Endpoint path should include format parameter"
    severity: info
    given: "$.paths[*]~"
    then:
      function: pattern
      functionOptions:
        match: "/format/"

  space-track-401-response:
    description: Authenticated endpoints should document 401 response
    message: "Authenticated endpoint missing 401 response"
    severity: warn
    given: "$.paths[*].get"
    then:
      field: responses.401
      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/us-space-comman-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.