Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • A api
  • Project information
    • Project information
    • Activity
    • Members
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Activity
Collapse sidebar
  • ironapi
  • api
  • Wiki
  • Api
  • Plugins

Plugins · Changes

Page history
Update Plugins authored Feb 02, 2022 by Andrea Pavlovic's avatar Andrea Pavlovic
Hide whitespace changes
Inline Side-by-side
API/Plugins.md
View page @ 766785fa
......@@ -4,3 +4,42 @@ A project can define it's own plugins, these are universally available:
* [Logout](/API/Logout)
* [Changing-Passwords](/API/Changing-Passwords)
# Permissions
To give permission for usage of plugin to a certain agenda, the corresponding action for the plugin must be used and then registered for the agenda:
`POST /data/system/agenda_action/create`
```json
"agenda" : 5,
"action" : 7,
```
To get the agenda id:
`POST /data/system/agenda/query`
```json
{
"conds" : {
"name" : "admin_agenda"
}
}
```
To get the action id:
`POST /data/system/action/query`
```json
{
"conds" : {
"is_functional" : true,
"entity.name" : "plugin_name",
"me.name" : "execute"
},
"attrs" :
}
```
SELECT action.id from system.action join system.entity on entity.id=entity and is_functional=true where action.name='execute' and entity.name='client_create'
Clone repository
  • API
    • Available Endpoints
    • Changing Passwords
    • Form Input Types
    • Introduction
    • Logout
    • Plugins
    • Queries
    • Queries
      • Attributes
      • Context
      • Query Examples
      • Query Search Options
      • Referenced Instances
      • Saved Queries
    • Schema_Changes
    • Storing Files
View All Pages