If you are using Postman, you can import all of the available API endpoints into an easy to use collection by following the instructions below:
- While inside a Postman Workspace, you should see an
importbutton at the top of your list of collections. Click this to begin the importing process. - After clicking
import, a dialog will open providing you with a couple of options for importing the collection. The easiest is to import using aLink. To do this, simply paste the following URL into the input box, and clickImport:https://w3c-ccg.github.io/traceability-interop/openapi/openapi.json. Alternatively, you can use theRaw textoption by copying the JSON found athttps://w3c-ccg.github.io/traceability-interop/openapi/openapi.json, and pasting it into the input box.
You should see something like this in your collections once you have successfully imported the spec:
npm run validate-spec: This command can be used to validate theopenapi.ymlspec, ensuring there are no issues.npm run preserve: This command is used to bundle ouropenapi.ymlfile into anopenapi.jsonfile that can be used to import the collection/spec.
For additional documentation on how the swagger-cli can be used, visit
here.