From 944ae2bfbb1e337a264bbac264da9cacfea89235 Mon Sep 17 00:00:00 2001 From: Vladimir Svacko Date: Wed, 28 Jan 2026 15:37:34 +0100 Subject: [PATCH] fix: README add initial query and mutations desciptions. --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 2bb2500..5f56c91 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,34 @@ npm run start The GraphQL API will be available at `http://localhost:4000/` +### Available Queries and Mutations + +#### Queries +- `apiVersion` - Returns the API build version +- `zabbixVersion` - Returns the version of the connected Zabbix instance +- `login` - Authenticates with Zabbix and returns an authentication token +- `logout` - Logs out from Zabbix, invalidating the current session +- `allHosts` - Returns all hosts and their items +- `allDevices` - Returns all devices and their items (hosts with deviceType) +- `allHostGroups` - Returns all host groups +- `locations` - Returns all locations used by hosts +- `exportHostValueHistory` - Exports value history for Zabbix items +- `userPermissions` - Returns all user permissions +- `hasPermissions` - Checks if the current user has requested permissions +- `exportUserRights` - Exports user rights (roles and groups) +- `templates` - Returns templates +- `allTemplateGroups` - Returns all template groups + +#### Mutations +- `createHost` - Creates a single host in Zabbix +- `importHostGroups` - Mass import Zabbix host groups +- `importHosts` - Mass import hosts and assign them to host groups +- `importUserRights` - Import user rights (roles and groups) into Zabbix +- `importTemplateGroups` - Mass import template groups +- `importTemplates` - Mass import templates +- `deleteTemplates` - Delete templates by their IDs or by a name pattern +- `deleteTemplateGroups` - Delete template groups by their IDs or by a name pattern + ### Production Build ```bash