Spec0docs
API Reference

Diff two raw OpenAPI specs via the oasdiff service

Accepts two spec files (YAML or JSON) as multipart/form-data and returns a structured diff and breaking-change list from the oasdiff service. Use this when diffing local files that are not yet in the registry.

POST
/api-management/cli/v1/diff

Header Parameters

X-Org-Id*string
Formatuuid

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://loading/api-management/cli/v1/diff" \  -H "X-Org-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -F base="string" \  -F revision="string"
{
  "hasBreakingChanges": true,
  "changelog": {},
  "breakingChanges": [
    {}
  ]
}
{
  "status": 0,
  "title": "string",
  "detail": "string"
}