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
b7c9d3b73b
Sorted remaining content_type issues and blackened
2021-07-19 20:09:09 +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
Joel Collins
7866ec0f47
Static type analysis
2020-11-30 13:36:45 +00:00
Joel Collins
c0f9f34256
Removed now-redundant TODO comments
2020-11-13 11:27:54 +00:00
Joel Collins
f681800e26
Improved args schema for captures
2020-11-12 16:46:07 +00: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
24398ba7dc
Updated tasks nomenclature
2020-07-21 12:54:42 +01:00
Joel Collins
e6cb9f6b35
Initial 0.7.0 conversion
2020-06-29 15:24:59 +01:00
Joel Collins
c1bd691654
Removed pointless doc_response
2020-05-28 11:26:39 +01:00
Joel Collins
1819ca6a9c
Switched to ActionView and PropertyView from decorators
2020-05-26 10:54:21 +01:00
Joel Collins
caf553db7a
Moved capture management into separate object
2020-04-28 14:32:56 +01:00
Joel Collins
cda5cdbb44
Switched away from using JSONify
2020-04-24 16:05:01 +01:00
Joel Collins
9b4bf4c8fc
Moved status routes to instrument/state
2020-01-29 17:43:52 +00:00
Joel Collins
7458d278d8
Simplified new configuration and metadata
2020-01-29 15:36:57 +00:00
jtc42
6df7fe9405
Blackened
2020-01-24 15:41:33 +00:00
jtc42
36334ed743
Moved to a LabThings dependency for server
2020-01-17 15:13:32 +00:00
Joel Collins
be74b92bd7
Default to video port for quick-captures
2020-01-15 11:55:30 +00:00
Joel Collins
e74d509d9e
Updated docs
2020-01-15 11:53:59 +00:00
Joel Collins
397f6ef19f
Added ram-capture method
2020-01-15 11:53:24 +00:00
Joel Collins
a329b9197b
Renamed Resource to View, and allow custom root links
2020-01-14 11:41:56 +00:00
Joel Collins
4003e4e65c
Renamed devices to components
2020-01-13 11:08:05 +00:00
Joel Collins
3f25959150
Switch to return status, not deprecated state
2020-01-10 19:58:45 +00:00
Joel Collins
23c10dc292
Added LabThings decorators
2020-01-10 19:55:41 +00:00
Joel Collins
8a282db12b
Moved to collision-robust device name
2020-01-09 20:04:22 +00:00
Joel Collins
e44da64ed4
Improved property and action style
2020-01-08 18:43:07 +00:00
Joel Collins
3cbd0416d0
Created @ltaction and @ltproperty decorators
2020-01-08 18:38:52 +00:00
Joel Collins
eaf2fc5f7d
Enable tag inheritance
2020-01-07 21:23:42 +00:00
Joel Collins
ed13749abe
Improved documentation
2020-01-07 15:04:47 +00:00
jtc42
8afb0757bd
Better handle response documentation
2020-01-06 22:28:00 +00:00
jtc42
70149e9732
Cleaned code structure
2020-01-06 16:45:38 +00:00
jtc42
ab6fa9f0e5
Blackened
2020-01-03 00:21:16 +00:00
jtc42
5bdb6764be
Fixed automatic Swagger from docstrings
2020-01-02 23:37:28 +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
6d7921e8b4
First draft of auto-Swagger
2020-01-02 21:33:50 +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
jtc42
c85bdcc91d
Blackened
2019-12-21 17:40:04 +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
Joel Collins
f2af359b8b
Added basic thing description to root
2019-12-18 14:30:33 +00:00