Beispiel #1
0
    def open_api_spec(bento=None):
        saved_bundle_path = resolve_bundle_path(bento,
                                                pip_installed_bundle_path)

        bento_service = load(saved_bundle_path)

        _echo(json.dumps(get_open_api_spec_json(bento_service), indent=2))
Beispiel #2
0
    def open_api_spec(bento=None):
        track_cli('open-api-spec')

        bento_service_bundle_path = resolve_bundle_path(
            bento, pip_installed_bundle_path)

        bento_service = load(bento_service_bundle_path)

        _echo(json.dumps(get_open_api_spec_json(bento_service), indent=2))
Beispiel #3
0
 def docs_view_func(bento_service):
     docs = get_open_api_spec_json(bento_service)
     return jsonify(docs)