mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-04-28 05:36:46 +00:00
fix format
This commit is contained in:
parent
463cb72c4f
commit
f69435db7c
@ -49,7 +49,7 @@ from plugin.mixins import APICallMixin, SettingsMixin, ScheduleMixin, BarcodeMix
|
|||||||
|
|
||||||
### A simple example
|
### A simple example
|
||||||
This example adds a new action under `/api/action/sample` using the ActionMixin.
|
This example adds a new action under `/api/action/sample` using the ActionMixin.
|
||||||
``` python title="sampleactionplugin.py"
|
``` py title="sampleactionplugin.py"
|
||||||
# -*- coding: utf-8 -*- # (1)
|
# -*- coding: utf-8 -*- # (1)
|
||||||
"""sample implementation for ActionPlugin""" # (2)
|
"""sample implementation for ActionPlugin""" # (2)
|
||||||
from plugin import IntegrationPluginBase
|
from plugin import IntegrationPluginBase
|
||||||
|
Loading…
x
Reference in New Issue
Block a user