9.4. OpenAPI Specification の使用
NAME openapi - Import API definition in OpenAPI specification USAGE 3scale import openapi [opts] -d <dst> <spec> DESCRIPTION Using an API definition format like OpenAPI, import to your 3scale API OPTIONS -d --destination=<value> 3scale target instance. Format: "http[s]://<authentication>@3scale_domain" -t --target_system_name=<value> Target system name OPTIONS FOR IMPORT -c --config-file=<value> 3scale toolbox configuration file (default: $HOME/.3scalerc.yaml) -h --help show help for this command -k --insecure Proceed and operate even for server connections otherwise considered insecure -v --version Prints the version of this command
9.4.1. ファイル名のパスからの OpenAPI 定義の検出
使用できるフォーマットは json と yaml です。フォーマットは、ファイル名の拡張子から自動的に検出されます。
$ 3scale import openapi -d <destination> /path/to/your/spec/file.[json|yaml|yml]