diff --git a/geomanager/serializers/core.py b/geomanager/serializers/core.py index 41ead6b..db4e0c5 100644 --- a/geomanager/serializers/core.py +++ b/geomanager/serializers/core.py @@ -21,7 +21,7 @@ class DatasetSerializer(serializers.ModelSerializer): class Meta: model = Dataset fields = ["id", "dataset", "name", "capabilities", "summary", "layer", "isMultiLayer", "category", - "sub_category", "metadata", "layers", "initialVisible", "public"] + "sub_category", "metadata", "layers", "initialVisible", "public", "layer_type"] def get_initialVisible(self, obj): return obj.initial_visible diff --git a/geomanager/urls.py b/geomanager/urls.py index 9537a54..ca0022a 100644 --- a/geomanager/urls.py +++ b/geomanager/urls.py @@ -41,13 +41,13 @@ router = SimpleRouter(trailing_slash=True) -router.register(r'api/datasets', DatasetViewSet) -router.register(r'api/metadata', MetadataViewSet) +router.register(r'api/datasets', DatasetViewSet, basename="datasets") +router.register(r'api/metadata', MetadataViewSet, basename="metadata") router.register(r'api/file-raster', RasterLayerRasterFileDetailViewSet, basename="file-raster") router.register(r'api/vector-data', VectorTableFileDetailViewSet, basename="vector-data") -router.register(r'api/aoi', AoiViewSet) +router.register(r'api/aoi', AoiViewSet, basename="aoi") urlpatterns = [ # MapViewer diff --git a/setup.cfg b/setup.cfg index 6c7556c..aa49902 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = geomanager -version = 0.4.4 +version = 0.4.5 description = Wagtail based Geospatial Data Manager long_description = file:README.md long_description_content_type = text/markdown