Note: 3scale ActiveDocs are based on API definitions which are Open API / Swagger compliant. There are multiple online and free tools to validate your API definition, for example Swagger 2.0 Parser and Validator
To upload your API definition to 3scale and create the ActiveDocs, run the following command:
3scale-cli activedocs create -f /path/to/apidefinition
Once you have created the ActiveDocs, learn how you publish them in your developer portal following this tutorial.
If you'd like to publish multiple ActiveDocs in the same page , check out this documentation.
You can specify a specific name for your activedocs using the optional -s
, --systemName
parameter.
Example:
3scale-cli activedocs create -f /path/to/apidefinition -s <system_name>
By running the following command 3scale-cli activedocs list
you'll get the following information about the activedocs:
- id
- name
- system name
- description
- published (which means it can be shown in the developer portal)
- creation date
- latest updated date
3scale-cli activedocs update -i <activedocs_id> -f /path/to/apidefinition
3scale-cli activedocs delete -i <activedocs_id>