diff --git a/dogapi/dogapi/views_api.py b/dogapi/dogapi/views_api.py index 2aacecb..4de3d91 100644 --- a/dogapi/dogapi/views_api.py +++ b/dogapi/dogapi/views_api.py @@ -389,7 +389,7 @@ def is_pid(request: Request) -> Response: return ret -@extend_schema(parameters=[pid_queryparam], +@extend_schema(parameters=[], description="Returns taxonomy of a MIME type according to Data Type Registry", responses={ 200: OpenApiTypes.OBJECT, diff --git a/dogui/dogui/templates/UI/_content.html b/dogui/dogui/templates/UI/_content.html index 3a8019e..aa10ae5 100644 --- a/dogui/dogui/templates/UI/_content.html +++ b/dogui/dogui/templates/UI/_content.html @@ -10,7 +10,9 @@
  • expand data type - returns MIME Data Type taxonomy from Data Type Registry
  • - OpenAPI docummentation available here + Swagger available here +
    + Raw openapi.json available here
    Source code for DOGlib available here
    diff --git a/dogui/dogui/utils.py b/dogui/dogui/utils.py index ff17122..cac4355 100644 --- a/dogui/dogui/utils.py +++ b/dogui/dogui/utils.py @@ -1,17 +1,16 @@ class TaxonomyTree: def __init__(self, taxonomy_dict: dict): self.name = next(iter(taxonomy_dict.keys())) - print("NAME") - print(self.name) taxonomy_dict = taxonomy_dict[self.name] tree_root_pid: str = "" + print("TAXONOMY DICT") print(taxonomy_dict) for node_pid, taxonomy_node in taxonomy_dict.items(): print("NODE PID") print(node_pid) print("taxonomy_node") print(taxonomy_node) - if taxonomy_node["name"] == self.name: + if not taxonomy_node["parents"]: tree_root_pid = node_pid break self.node = TaxonomyNode(tree_root_pid, taxonomy_dict) diff --git a/pyproject.toml b/pyproject.toml index 407fb22..376ec82 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ homepage = "" repository = "https://github.com/clarin-eric/DOGapp/" [tool.poetry.dependencies] -doglib = { url = "https://github.com/clarin-eric/DOGlib/releases/download/1.0.7-rc1/doglib-1.0.7rc1-py3-none-any.whl" } +doglib = { url = "https://github.com/clarin-eric/DOGlib/releases/download/1.0.7-rc2/doglib-1.0.7rc2-py3-none-any.whl" } Django = '4.2.11' django-cors-headers = '>=4.3.1' django-debug-toolbar = '4.3.0'