2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-06-14 03:05:28 +00:00

move plugins into directories

This commit is contained in:
Matthias Mair
2021-12-29 18:17:22 +01:00
parent e993b84cee
commit cb0943494c
5 changed files with 174 additions and 1 deletions

View File

@ -0,0 +1,18 @@
---
title: Action Plugins
---
### Action Plugins
Arbitrary "actions" can be called by POSTing data to the `/api/action/` endpoint. The POST request must include the name of the action to be performed, and a matching ActionPlugin plugin must be loaded by the server. Arbitrary data can also be provided to the action plugin via the POST data:
```
POST {
action: "MyCustomAction",
data: {
foo: "bar",
}
}
```
For an example of a very simple action plugin, refer to `/InvenTree/plugin/builtin/action/simpleactionplugin.py`