Richard Bowman
9dbb083ee7
More Marshmallow argument updates
2022-08-09 13:16:10 +01:00
Richard Bowman
e22f36b308
Start explicit metadata argument for marshmallow
...
A side effect of re-locking dependencies is having a newer marshmallow.
This deprecates having `description=` as a keyword, and puts it in a
separate metadata arg instead.
This commit is the start of my search-and-replaceing to update to the new
format.
2022-08-09 12:52:57 +01:00
Richard
a8b1efb7cd
Removed openapi endpoints (now in LabThings)
2021-07-25 01:23:44 +01:00
Richard
7b54abc210
blackened
2021-07-19 22:22:58 +01:00
Richard
34af06b1d1
Document route parameter in nested dictionaries
2021-07-19 22:21:39 +01:00
Richard
ec992c083f
Describe filename param in capture download
2021-07-19 21:40:28 +01:00
Richard
72f3c11fdd
linting and typing fixes
2021-07-19 20:29:13 +01:00
Richard
b7c9d3b73b
Sorted remaining content_type issues and blackened
2021-07-19 20:09:09 +01:00
Richard
48fa1842a9
Fixed stage schemas
...
If missing=None, we need to specify allow_None=False
in order to generate valid OpenAPI.
This may also be fixed by an upstream change in LabThings.
Also, OneOf was being used incorrectly in StageTypeProperty.
2021-07-13 22:53:35 +01:00
Richard
50ad9d4369
Fixed content dicts to be valid OpenAPI
...
For functions that return JPEGs, we were
using "content_type": "image/jpeg"
instead we should use "content": { "image/jpeg": {}}
2021-07-13 22:52:10 +01:00
Richard
00531a93bf
Fixed response descriptions for stream/RAM capture
2021-07-06 15:24:43 +01:00
Richard
8157fa6d58
Add YAML export from APISpec
2021-06-27 21:08:48 +01:00
Richard Bowman
a2ba95c1d3
Minor linting improvements
...
I have now disabled W1203 globally, see comment in
pyproject.toml
2021-04-27 11:17:11 +01:00
Richard Bowman
90f5a755b1
Handle absolute moves correctly
...
I've changed the default values in MoveStageAPI
so that it correctly handles absolute moves with missing axes.
I've also simplified it so it isn't using axes_to_array as that
resulted in a confusing code path.
2021-04-27 10:55:51 +01:00
Joel Collins
bc3927759f
Handle missing endpoints
2020-11-30 17:10:00 +00:00
Joel Collins
7866ec0f47
Static type analysis
2020-11-30 13:36:45 +00:00
Joel Collins
65df702dfd
Removed unused commented line
2020-11-18 16:09:35 +00:00
Joel Collins
aba3eb3544
Return LST as a file
2020-11-18 15:24:24 +00:00
Joel Collins
4d40e81f0e
Added API route to convert LST to PNG
2020-11-18 14:23:12 +00:00
Joel Collins
421a2e3960
Replace top-level actions View with builtin LabThings
2020-11-17 17:17:06 +00:00
Joel Collins
021745da26
Remove separate camera stream thread
2020-11-17 16:19:55 +00:00
Joel Collins
c9c29a7db4
Moved gen() into streams.py
2020-11-17 11:20:07 +00:00
Joel Collins
c0f9f34256
Removed now-redundant TODO comments
2020-11-13 11:27:54 +00:00
Joel Collins
84dcf4f475
Cleaned up Capture schemas
2020-11-13 11:12:39 +00:00
Joel Collins
f681800e26
Improved args schema for captures
2020-11-12 16:46:07 +00:00
Joel Collins
6fb61e1e3f
Reverted logging style
2020-11-12 15:45:58 +00:00
Joel Collins
9f5252194a
Updated all log strings to new format
2020-11-12 15:12:17 +00:00
Joel Collins
6644819352
Formatting
2020-11-12 14:33:08 +00:00
Joel Collins
f4b123c237
Style and linting
2020-11-12 14:28:44 +00:00
Joel Collins
b350f62013
Removed old JSONResponse class
2020-11-12 13:50:48 +00:00
Joel Collins
32cf2de96e
Formatting
2020-11-03 16:11:37 +00:00
Joel Collins
b69c90345f
Removed full capture metadata from top-level resource list
2020-11-03 15:45:00 +00:00
Joel Collins
353450dd56
Fixed capture link generator when passed a dict
2020-10-28 10:47:10 +00:00
Joel Collins
b3332c078d
Fixed misuse of id name
2020-10-16 14:53:02 +01:00
Joel Collins
994e83dbeb
Code cleanup
2020-10-14 14:56:29 +00:00
Joel Collins
2bfb988460
Code formatting
2020-10-13 15:02:19 +01:00
Joel Collins
4521913f1b
Added OneOf to stage type schema
2020-10-13 14:59:59 +01:00
samuelmcdermott
86d866c5f9
Moved API from action to property view
2020-10-13 12:39:17 +01:00
samuelmcdermott
f30679d4db
stage API returns a dict
2020-10-12 16:56:25 +01:00
samuelmcdermott
81ca2c9cb1
Add a get route for the stage type and rename
2020-10-12 01:23:44 +01:00
samuelmcdermott
79f3104409
Add API to set the stage
2020-10-11 01:01:21 +01:00
Joel Collins
54c342bbbb
Switch to picamerax
2020-09-07 16:31:59 +01:00
Joel Collins
24398ba7dc
Updated tasks nomenclature
2020-07-21 12:54:42 +01:00
Joel Collins
ee738d5319
Fixed capture marshalling
2020-07-21 11:57:41 +01:00
Joel Collins
29ee73cedc
Fixed argument 'missing' values
2020-06-29 16:39:37 +01:00
Joel Collins
a72211a6dc
Removed old decorator import
2020-06-29 15:34:32 +01:00
Joel Collins
e6cb9f6b35
Initial 0.7.0 conversion
2020-06-29 15:24:59 +01:00
Joel Collins
9cecb477cb
Flipped to explicit finite lock timeouts
2020-06-29 09:03:27 +01:00
Joel Collins
93e2893b10
Removed unused gevent refs
2020-06-15 12:11:03 +01:00
Joel Collins
c1bd691654
Removed pointless doc_response
2020-05-28 11:26:39 +01:00