Fixed root swagger UI description
This commit is contained in:
parent
b2824251ae
commit
a2bb1a1a38
1 changed files with 2 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ from .spec import view2path
|
||||||
|
|
||||||
from .views.extensions import ExtensionList
|
from .views.extensions import ExtensionList
|
||||||
from .views.tasks import TaskList, TaskResource
|
from .views.tasks import TaskList, TaskResource
|
||||||
from .views.docs import docs_blueprint, APISpecResource, W3CThingDescriptionResource
|
from .views.docs import docs_blueprint, SwaggerUIResource, W3CThingDescriptionResource
|
||||||
|
|
||||||
from openflexure_microscope.common.labthings_core.utilities import get_docstring
|
from openflexure_microscope.common.labthings_core.utilities import get_docstring
|
||||||
|
|
||||||
|
|
@ -286,11 +286,10 @@ class LabThing(object):
|
||||||
"thingDescription": {
|
"thingDescription": {
|
||||||
"href": url_for("labthings_docs.w3c_td", _external=True),
|
"href": url_for("labthings_docs.w3c_td", _external=True),
|
||||||
"description": get_docstring(W3CThingDescriptionResource),
|
"description": get_docstring(W3CThingDescriptionResource),
|
||||||
"methods": ["GET"],
|
|
||||||
},
|
},
|
||||||
"swaggerUI": {
|
"swaggerUI": {
|
||||||
"href": url_for("labthings_docs.swagger_ui", _external=True),
|
"href": url_for("labthings_docs.swagger_ui", _external=True),
|
||||||
**description_from_view(APISpecResource),
|
**description_from_view(SwaggerUIResource),
|
||||||
},
|
},
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"href": self.url_for(ExtensionList, _external=True),
|
"href": self.url_for(ExtensionList, _external=True),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue