Add YAML export from APISpec

This commit is contained in:
Richard 2021-06-27 21:08:48 +01:00
parent 5279becce7
commit 8157fa6d58
4 changed files with 29 additions and 0 deletions

View file

@ -153,6 +153,8 @@ labthing.add_view(
views.NestedConfigurationProperty, "/instrument/configuration/<path:route>"
)
labthing.add_root_link(views.ConfigurationProperty, "instrumentConfiguration")
labthing.add_view(views.APISpecJSONView, "/docs/swagger.json")
labthing.add_view(views.APISpecYAMLView, "/docs/swagger.yaml")
# Attach stage resources
labthing.add_view(views.StageTypeProperty, "/instrument/stage/type")