From d7a1d1d90e66d3a300b3056d4dc3556194aa9834 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 30 Nov 2021 16:55:03 -0600 Subject: graphql: T3993: update README.graphql (cherry picked from commit 9f6ca1e489c0498bfa90ca027d1d7419d4e422b8) --- src/services/api/graphql/README.graphql | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'src/services/api/graphql') 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 -- cgit v1.2.3