Coverage for histogis/urls.py: 100%

15 statements  

« prev     ^ index     » next       coverage.py v7.6.0, created at 2024-07-27 11:19 +0000

1from django.urls import path, include 

2from django.contrib import admin 

3from rest_framework import routers 

4from rest_framework.documentation import include_docs_urls 

5from vocabs import api_views 

6from shps import api_views as shps_api_views 

7 

8router = routers.DefaultRouter() 

9router.register(r"skoslabels", api_views.SkosLabelViewSet) 

10router.register(r"skosnamespaces", api_views.SkosNamespaceViewSet) 

11router.register(r"skosconceptschemes", api_views.SkosConceptSchemeViewSet) 

12router.register(r"skosconcepts", api_views.SkosConceptViewSet) 

13router.register(r"tempspatial", shps_api_views.TempSpatialViewSet) 

14router.register(r"source", shps_api_views.SourceViewSet) 

15router.register( 

16 r"tempspatial-simple", shps_api_views.SimpleViewSet, basename="tempspatial-simple" 

17) 

18 

19 

20urlpatterns = [ 

21 path("api/", include(router.urls)), 

22 path( 

23 "api/where-was/", 

24 shps_api_views.TemporalizedSpatialQuery.as_view(), 

25 name="where_was_api", 

26 ), 

27 path("api-docs/", include_docs_urls(title="HistoGIS-API")), 

28 path("api-auth/", include("rest_framework.urls", namespace="rest_framework")), 

29 path("admin/", admin.site.urls), 

30 path("vocabs/", include("vocabs.urls", namespace="vocabs")), 

31 path("vocabs-ac/", include("vocabs.dal_urls", namespace="vocabs-ac")), 

32 path("", include("webpage.urls", namespace="webpage")), 

33 path("shapes/", include("shps.urls", namespace="shapes")), 

34 path("analyze/", include("analyze.urls", namespace="analyze")), 

35]