Commit graph

550 commits

Author SHA1 Message Date
jtc42
8b472eab1b Use @use_args 2020-01-06 17:48:16 +00:00
jtc42
39cba66743 Use relative imports 2020-01-06 17:48:03 +00:00
jtc42
d656ce24ec Use update_spec 2020-01-06 17:47:53 +00:00
jtc42
4a6e672630 Marshal with TaskSchema 2020-01-06 17:23:37 +00:00
jtc42
964258a1b7 Fixed missing task links 2020-01-06 17:22:57 +00:00
jtc42
f1fae05cdd Fixed task dictionary keys 2020-01-06 17:22:48 +00:00
jtc42
851d70842c Moved all API stuff to flask_labthings 2020-01-06 17:03:05 +00:00
jtc42
6bf178750b Fixed ExtensionList reference 2020-01-06 16:47:27 +00:00
jtc42
70149e9732 Cleaned code structure 2020-01-06 16:45:38 +00:00
jtc42
79abc3fee3 Added quick create_app function 2020-01-06 15:09:29 +00:00
jtc42
829c58d3fb Blackened 2020-01-06 15:00:48 +00:00
jtc42
585633020b Automatically register all extensions in the extension directory (without explicit init import) 2020-01-05 20:02:22 +00:00
jtc42
7888d97220 Fixed extension URLs with URL params 2020-01-05 19:07:28 +00:00
jtc42
932353de31 Updated ZIP builder to extension 2020-01-05 19:06:45 +00:00
jtc42
acb3f0c956 Merge branch 'new-plugin-system' of https://gitlab.com/openflexure/openflexure-microscope-software into new-plugin-system 2020-01-05 18:57:20 +00:00
jtc42
2a245185a6 Renamed LabThing plugins to extensions 2020-01-05 18:56:46 +00:00
Joel Collins
1d7eb4700c Added zip_plugin_v2 to defaults 2020-01-03 15:22:09 +00:00
Joel Collins
440f35d9e1 Added draft v2 zip builder plugin 2020-01-03 15:21:32 +00:00
jtc42
d96e188d16 Removed old debug code 2020-01-03 00:23:00 +00:00
jtc42
ab6fa9f0e5 Blackened 2020-01-03 00:21:16 +00:00
jtc42
6be8b0044a Added simple root and swagger routes 2020-01-03 00:19:25 +00:00
jtc42
bcfc8e6eeb Added update_spec function 2020-01-02 23:52:46 +00:00
jtc42
5bdb6764be Fixed automatic Swagger from docstrings 2020-01-02 23:37:28 +00:00
jtc42
4918215ea7 Tested Field description 2020-01-02 23:36:59 +00:00
jtc42
9bc4e6171a Fixed doc_response import 2020-01-02 23:01:20 +00:00
jtc42
a75b6073f2 Renamed @response to @doc_response 2020-01-02 23:01:04 +00:00
jtc42
b3f32f2309 Added decorator for documenting response codes 2020-01-02 22:43:44 +00:00
jtc42
3bcfd86ccc Get default description and summary from docstring 2020-01-02 22:43:24 +00:00
jtc42
b0316ae494 Fixed default response docs 2020-01-02 21:42:03 +00:00
jtc42
6d7921e8b4 First draft of auto-Swagger 2020-01-02 21:33:50 +00:00
Joel Collins
99d0d0055e Converted webargs decorators to classes (allowing auto-docs) 2020-01-01 18:07:16 +00:00
Joel Collins
dad89c0779 Use @marshal_with for capture action 2019-12-31 16:25:33 +00:00
Joel Collins
7174e6a60a First test of @use_args decorator 2019-12-31 16:19:50 +00:00
Joel Collins
998d3b4109 Added empty class endpoint 2019-12-30 18:08:03 +00:00
Joel Collins
31018b0c92 Use marshall_with 2019-12-30 18:07:53 +00:00
Joel Collins
f0c1547d82 Added plugin JSON schema 2019-12-30 18:02:47 +00:00
Joel Collins
b4e2d5b172 Only measure sharpness if camera has "array" method 2019-12-28 18:57:53 +00:00
Joel Collins
20bbf5ab21 Removed blueprint stuff from owns_endpoint 2019-12-28 18:55:13 +00:00
Joel Collins
419cc411b7 Move new default plugins to API submodule 2019-12-28 18:53:10 +00:00
Joel Collins
e4c6e892fa Fixed plugin list endpoint 2019-12-28 18:52:52 +00:00
Joel Collins
2b90829020 Replace uuid().hex with just uuid() 2019-12-28 18:36:46 +00:00
jtc42
c85bdcc91d Blackened 2019-12-21 17:40:04 +00:00
jtc42
2574e38b47 Tidied up 2019-12-21 17:38:29 +00:00
jtc42
4793de1283 Generate links at pre_dump time 2019-12-21 17:37:21 +00:00
jtc42
d13f8d8b8c Use LabThing Resource 2019-12-21 16:21:29 +00:00
jtc42
e9bcaf7faf Use LabThing Resource 2019-12-21 16:21:22 +00:00
jtc42
8bda25ea73 Lowercase for endpoint names 2019-12-21 16:21:02 +00:00
jtc42
68541fdddb Removed explicit endpoints 2019-12-21 16:19:52 +00:00
jtc42
2372ba26e1 Added some basic docs (waiting on auto-doc for args) 2019-12-21 13:18:02 +00:00
jtc42
a8a3cafa97 Restructured labthings 2019-12-21 12:10:09 +00:00