summaryrefslogtreecommitdiff
path: root/src/services/api
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-11-30 16:55:03 -0600
committerJohn Estabrook <jestabro@vyos.io>2021-12-01 15:52:10 -0600
commitd7a1d1d90e66d3a300b3056d4dc3556194aa9834 (patch)
treea87f0708049cdb02778c7638332d9081f5feaa92 /src/services/api
parentaae53dad4a02ca5b7591ff07059c0b99190aee7e (diff)
downloadvyos-1x-d7a1d1d90e66d3a300b3056d4dc3556194aa9834.tar.gz
vyos-1x-d7a1d1d90e66d3a300b3056d4dc3556194aa9834.zip
graphql: T3993: update README.graphql
(cherry picked from commit 9f6ca1e489c0498bfa90ca027d1d7419d4e422b8)
Diffstat (limited to 'src/services/api')
-rw-r--r--src/services/api/graphql/README.graphql25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/services/api/graphql/README.graphql b/src/services/api/graphql/README.graphql
index 29f58f709..a3c30b005 100644
--- a/src/services/api/graphql/README.graphql
+++ b/src/services/api/graphql/README.graphql
@@ -73,6 +73,20 @@ mutation {
}
}
+Op-mode 'show' commands may be requested by path, e.g.:
+
+mutation {
+ Show (data: {path: ["interfaces", "ethernet", "detail"]}) {
+ success
+ errors
+ data {
+ result
+ }
+ }
+}
+
+N.B. to see the output the 'data' field 'result' must be present in the
+request.
The GraphQL playground will be found at:
@@ -97,15 +111,22 @@ services
│   │   └── schema
│   │   ├── config_file.graphql
│   │   ├── dhcp_server.graphql
+│   │   ├── firewall_group.graphql
│   │   ├── interface_ethernet.graphql
-│   │   └── schema.graphql
+│   │   ├── schema.graphql
+│   │   ├── show_config.graphql
+│   │   └── show.graphql
│   ├── README.graphql
│   ├── recipes
│   │   ├── __init__.py
+│   │   ├── remove_firewall_address_group_members.py
│   │   ├── session.py
│   │   └── templates
│   │   ├── create_dhcp_server.tmpl
-│   │   └── create_interface_ethernet.tmpl
+│   │   ├── create_firewall_address_group.tmpl
+│   │   ├── create_interface_ethernet.tmpl
+│   │   ├── remove_firewall_address_group_members.tmpl
+│   │   └── update_firewall_address_group_members.tmpl
│   └── state.py
├── vyos-configd
├── vyos-hostsd