Commit 8a5c749d authored by Joel Collins's avatar Joel Collins
Browse files

Added specific API schema example plugin

parent 559fe6c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ class JsonPayload:
        else:
            val = default

        if convert:
        if convert and (val is not None):
            val = convert(val)
        return val

+2 −0
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@ API_SCHEMA = {
    'forms': [
        {
            'route': '/fast_autofocus',
            'isTask': True,
            'submitLabel': "Run autofocus",
            'schema': [
                {
                    'fieldType': "htmlBlock",
+0 −1
Original line number Diff line number Diff line
from .plugin import Plugin
 No newline at end of file
+0 −13
Original line number Diff line number Diff line
from openflexure_microscope.plugins import MicroscopePlugin


class Plugin(MicroscopePlugin):
    """
    A set of default plugins
    """

    def identify(self):
        """
        Tests for access to Microscope.camera, and Microscope.stage
        """
        return self.microscope.camera, self.microscope.stage
+2 −0
Original line number Diff line number Diff line
from .plugin import ExamplePlugin
from . import api
 No newline at end of file
Loading