Menu Close
5.12.2. ActiveDocs の作成または更新
ActiveDoc が存在しない場合に新しく作成する、または新しい API 定義で既存の ActiveDocs を更新するには、以下のコマンドを使用します。
3scale activedocs apply <remote> <activedocs_id_or_system_name>
ActiveDocs の更新時に、以下のオプションを使用します。
Options -d --description=<value> Specify the description of the ActiveDocs --hide Specify to hide the ActiveDocs on the Developer Portal -i --service-id=<value> Specify the Service ID associated to the ActiveDocs -o --output=<value> Output format on stdout: one of json|yaml --openapi-spec=<value> Specify the Swagger specification. Can be a file, a URL or '-' to read from stdin. This is a mandatory option when applying the ActiveDoc for the first time. -p --publish Specify to publish the ActiveDocs on the Developer Portal. Otherwise it is hidden -s --name=<value> Specify the name of the ActiveDocs --skip-swagger-validations=<value> Specify whether to skip validation of the Swagger specification: true or false. Defaults to true. Options for ActiveDocs -c --config-file=<value> 3scale toolbox configuration file: defaults to $HOME/.3scalerc.yaml -h --help Print help for this command -k --insecure Proceed and operate even for server connections otherwise considered insecure -v --version Print the version of this command --verbose Verbose mode
注記
activedocs apply --skip-swagger-validations
の動作が、3scale 2.8 で変更されました。activedocs apply
を使用する既存のスクリプトを更新しなければならない場合があります。従来は、各 activedocs apply
コマンドでこのオプションを指定しない場合、検証はスキップされませんでした。今回、--skip-swagger-validations
はデフォルトで true
になりました。