Skip to content

Commit

Permalink
Merge pull request #21 from wmo-raf/dev
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
erick-otenyo authored Feb 15, 2024
2 parents 3fd0297 + 28310b5 commit 04c3a77
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion geomanager/serializers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions geomanager/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 04c3a77

Please sign in to comment.