summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/README.graphql
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-11-22 09:28:31 -0600
committerJohn Estabrook <jestabro@vyos.io>2021-11-22 09:29:57 -0600
commitf4ec1a88b655e64372d30166b69021e2a17b2a90 (patch)
treeb7aca91d43e2c138126709c7f92de33c3cb768be /src/services/api/graphql/README.graphql
parent22e3558834784a8ca37f6335c15c58a631a7fe10 (diff)
downloadvyos-1x-f4ec1a88b655e64372d30166b69021e2a17b2a90.tar.gz
vyos-1x-f4ec1a88b655e64372d30166b69021e2a17b2a90.zip
graphql: T3993: update README.graphql
Diffstat (limited to 'src/services/api/graphql/README.graphql')
-rw-r--r--src/services/api/graphql/README.graphql12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/services/api/graphql/README.graphql b/src/services/api/graphql/README.graphql
index c91b70782..0ddcb578a 100644
--- a/src/services/api/graphql/README.graphql
+++ b/src/services/api/graphql/README.graphql
@@ -42,6 +42,8 @@ mutation {
}
}
+To save the configuration, use the following mutation:
+
mutation {
saveConfigFile(data: {fileName: "/config/config.boot"}) {
success
@@ -52,8 +54,14 @@ mutation {
}
}
-N.B. fileName can be empty (fileName: "") or data can be empty (data: {}) to save to
-/config/config.boot; to save to an alternative path, specify fileName.
+N.B. fileName can be empty (fileName: "") or data can be empty (data: {}) to
+save to /config/config.boot; to save to an alternative path, specify
+fileName.
+
+Similarly, using the same 'endpoint' (meaning the form of the request and
+resolver; the actual enpoint for all GraphQL requests is
+https://hostname/graphql), one can load an arbitrary config file from a
+path.
mutation {
loadConfigFile(data: {fileName: "/home/vyos/config.boot"}) {