summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-07-25 10:34:17 +0100
committerGitHub <noreply@github.com>2022-07-25 10:34:17 +0100
commit3337aedd5f7ff48bfad051d760023a188fdace70 (patch)
tree3dc5b5c22444430a74f8d0f8a8ed54415a8ccd47 /src/conf_mode
parente1e9f690d3eb4cd03aba118558fffd5b6b2920c8 (diff)
parentf9d6f089014007193996e51757f72a8bf7ec78b9 (diff)
downloadvyos-1x-3337aedd5f7ff48bfad051d760023a188fdace70.tar.gz
vyos-1x-3337aedd5f7ff48bfad051d760023a188fdace70.zip
Merge pull request #1431 from jestabro/gql-dev
graphql: T4567: Merge experimental branch of GraphQL development
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/http-api.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/conf_mode/http-api.py b/src/conf_mode/http-api.py
index 4a7906c17..04113fc09 100755
--- a/src/conf_mode/http-api.py
+++ b/src/conf_mode/http-api.py
@@ -66,14 +66,10 @@ def get_config(config=None):
if conf.exists('debug'):
http_api['debug'] = True
- # this node is not available by CLI by default, and is reserved for
- # the graphql tools. One can enable it for testing, with the warning
- # that this will open an unauthenticated server. To do so
- # mkdir /opt/vyatta/share/vyatta-cfg/templates/service/https/api/gql
- # touch /opt/vyatta/share/vyatta-cfg/templates/service/https/api/gql/node.def
- # and configure; editing the config alone is insufficient.
if conf.exists('gql'):
http_api['gql'] = True
+ if conf.exists('gql introspection'):
+ http_api['introspection'] = True
if conf.exists('socket'):
http_api['socket'] = True