diff --git a/metacatalog_api/core.py b/metacatalog_api/core.py index eb628dc..797c41f 100644 --- a/metacatalog_api/core.py +++ b/metacatalog_api/core.py @@ -108,6 +108,7 @@ def variables(id: int = None, only_available: bool = False, offset: int = None, return variables + def add_entry(flat_dict: dict) -> Metadata: # get the variable # TODO: put this into the server, as this is due to the FORM. the core package should use the payload model diff --git a/metacatalog_api/templates/add_entry.html b/metacatalog_api/templates/add_entry.html index 89facb8..9c27219 100644 --- a/metacatalog_api/templates/add_entry.html +++ b/metacatalog_api/templates/add_entry.html @@ -33,6 +33,22 @@