2.12. ActiveDocs


3scale toolbox를 사용하여 개발자 포털에서 ActiveDocs를 생성, 업데이트, 나열 또는 삭제합니다.

2.12.1. 새 ActiveDocs 생성

OpenAPI / Swagger 준수 API 정의에서 새 ActiveDocs를 생성하려면 다음을 수행합니다.

  1. 3scale에 API 정의를 추가하고 선택적으로 이름을 지정합니다.

    3scale activedocs create <remote> <activedocs-name> <spec>

    ActiveDocs를 생성하는 동안 다음 옵션을 사용합니다.

    Options
        -d --description=<value>           Specify the description of the
                                           ActiveDocs
        -i --service-id=<value>            Specify the Service ID associated to
                                           the ActiveDocs
        -p --published                     Specify it to publish the ActiveDoc on
                                           the Developer Portal. Otherwise it
                                           will be hidden
        -s --system-name=<value>           Specify the system-name of the
                                           ActiveDocs
           --skip-swagger-validations      Specify it to skip validation of the
                                           Swagger specification
    
    Options for ActiveDocs
        -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
           --verbose                       Verbose mode
  2. 개발자 포털에 정의를 게시합니다.

2.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 it to hide the ActiveDocs on
                                       the Developer Portal
    -i --service-id=<value>            Specify the Service ID associated to
                                       the ActiveDocs
       --openapi-spec=<value>          Specify the swagger spec. Can be a
                                       file, an URL or '-' to read from
                                       stdin. This option is mandatory when
                                       applying the ActiveDoc for the first
                                       time
    -p --publish                       Specify it to publish the ActiveDocs
                                       on the Developer Portal. Otherwise it
                                       will be hidden
    -s --name=<value>                  Specify the name of the ActiveDocs
       --skip-swagger-validations      Specify it to skip validation of the
                                       Swagger specification

Options for ActiveDocs
    -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
       --verbose                       Verbose mode

2.12.3. ActiveDocs 나열

다음 명령을 사용하여 다음을 포함하여 개발자 포털의 모든 ActiveDocs에 대한 정보를 가져옵니다.

  • id
  • name
  • 시스템 이름
  • description
  • 게시됨(개발 포털에 표시될 수 있음)
  • 생성 날짜
  • 최신 업데이트 날짜

다음 명령은 정의된 모든 ActiveDocs를 나열합니다.

3scale activedocs list <remote>

ActiveDocs를 나열하는 동안 다음 옵션을 사용합니다.

Options for ActiveDocs
    -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
       --verbose                  Verbose mode

2.12.4. ActiveDocs 삭제

다음 명령은 ActiveDocs를 제거합니다.

3scale activedocs delete <remote> <activedocs-id_or-system-name>

ActiveDocs를 삭제하는 동안 다음 옵션을 사용합니다.

Options for ActiveDocs
    -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
       --verbose                  Verbose mode
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.