From ad5eecf88dfda154de2ca199f8687be5611211e9 Mon Sep 17 00:00:00 2001 From: Giovanni Allegri Date: Tue, 9 Apr 2024 13:48:25 +0200 Subject: [PATCH] configure REST API preset for catalog listing (#1709) --- geonode_mapstore_client/apps.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/geonode_mapstore_client/apps.py b/geonode_mapstore_client/apps.py index 93294719eb..48c107fae2 100644 --- a/geonode_mapstore_client/apps.py +++ b/geonode_mapstore_client/apps.py @@ -94,6 +94,26 @@ def run_setup_hooks(*args, **kwargs): "OPTIONS": {"MAX_ENTRIES": 10000}, } + settings.REST_API_PRESETS["catalog_list"] = { + "exclude[]": ["*"], + "include[]": [ + "advertised", + "detail_url", + "is_approved", + "is_copyable", + "is_published", + "owner", + "perms", + "pk", + "raw_abstract", + "resource_type", + "subtype", + "title", + "data", + "executions", + ], + } + def connect_geoserver_style_visual_mode_signal(): from geonode.geoserver.signals import geoserver_automatic_default_style_set