Managing Documentation using APIs
API Documentation in Traceable refers to specifications that describe your APIs. Traceable supports the following documentation types:
OpenAPI specs
Postman Collections
Postman Environments
GraphQL schemas
WSDLs
You can manage these specifications using the following API operations to automate management, without using the Traceable platform user interface:
Upload — Add new documentation (spec file) and trigger discovery or naming rules, optionally.
Re-upload — Replace an existing spec file with a new version using the same spec ID and path.
Update — Modify the metadata, such as name and discovery flags, for an existing API documentation without changing the file.
Delete — Permanently remove the API documentation and its associated metadata.
For more information on performing these operations, see API Documentation Operations.
What will you learn in this topic?
By the end of this topic, you will understand:
The supported operations on the API documentation files.
The sample API calls to upload, re-upload, update, and delete the API documentation files.
The limitations and best practices associated with the above operations.
Before you begin
Make a note of the following before you proceed with the operations:
Make sure you have the Traceable platform API token for authenticated access. For more information, see Public APIs.
Make sure you have the spec file you wish to upload.
Make sure you have a unique path for each spec.
(For re-upload, update, and delete operations only) Make sure you have the ID of the spec you wish to operate on.
API Documentation Operations
The following sections highlight the details for performing the available operations on your spec files.
API URL
Headers
Form-data
uploadConfiguration— The JSON metadata describing the operation.<configKey>— You must attach the actual spec file. The key must match theconfigKeyin the configuration.
Spec Types
The following spec types are supported in the operations:
OpenAPI specs —
SPEC_TYPE_OPEN_API_SPECPostman Collections —
SPEC_TYPE_POSTMAN_COLLECTIONPostman Environments —
SPEC_TYPE_POSTMAN_ENVIRONMENTGraphQL schemas —
SPEC_TYPE_GRAPHQL_SCHEMAWSDLs —
SPEC_TYPE_WSDL
Last updated
Was this helpful?