OpenAPI sync
OpenAPI sync shows what changed between an API spec and your requests, so your requests keep up with the API.
Compare a folder with a spec
Section titled “Compare a folder with a spec”Right-click a folder → Compare with OpenAPI…, or use the command palette. Pick an OpenAPI 3 or Swagger 2.0 file.
Courier lists:
- operations that are new in the spec,
- requests the spec no longer describes,
- matched requests whose required query parameters, headers or body differ.
Matching is by method and path shape, so /pets/{petId}, /pets/{{id}} and /pets/7 are the same. The server’s base path is ignored.
Add new operations
Section titled “Add new operations”Click Add N requests to import just the new operations. Existing files are never changed, and nothing is deleted.
courier sync openapi.yaml api-checks --env staging # exit 1 when they differcourier sync openapi.yaml api-checks --add # also add the new operations--env picks the environment whose values fill {{variables}} in request URLs.