diff --git a/histogis/urls.py b/histogis/urls.py index e9850bc..0b96fb6 100644 --- a/histogis/urls.py +++ b/histogis/urls.py @@ -1,7 +1,6 @@ from django.urls import path, include from django.contrib import admin from rest_framework import routers -from rest_framework.documentation import include_docs_urls from vocabs import api_views from shps import api_views as shps_api_views @@ -24,7 +23,6 @@ shps_api_views.TemporalizedSpatialQuery.as_view(), name="where_was_api", ), - path("api-docs/", include_docs_urls(title="HistoGIS-API")), path("api-auth/", include("rest_framework.urls", namespace="rest_framework")), path("admin/", admin.site.urls), path("vocabs/", include("vocabs.urls", namespace="vocabs")), diff --git a/requirements.txt b/requirements.txt index 843508f..06411da 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,6 @@ Django>=5.0.6,<6 djangorestframework-gis geopandas psycopg2-binary -coreapi lxml rdflib requests diff --git a/shps/api_views.py b/shps/api_views.py index 68ce509..f2a06a7 100644 --- a/shps/api_views.py +++ b/shps/api_views.py @@ -1,10 +1,7 @@ -import coreapi -import coreschema from dateutil.parser import parse from django.contrib.gis.geos import Point from django_filters.rest_framework import DjangoFilterBackend -from rest_framework.schemas import AutoSchema from rest_framework import generics from rest_framework import viewsets from rest_framework.filters import OrderingFilter @@ -69,42 +66,6 @@ class TemporalizedSpatialQuery(generics.ListAPIView): serializer_class = TempSpatialSerializer pagination_class = StandardResultsSetPagination - schema = AutoSchema( - manual_fields=[ - coreapi.Field( - "page_size", - required=False, - location="query", - schema=coreschema.String( - description="Defaults to 1 due to performance reasons." - ), - ), - coreapi.Field( - "lat", - required=True, - location="query", - schema=coreschema.String( - description="Latitude of the place to query for." - ), - ), - coreapi.Field( - name="lng", - required=True, - location="query", - schema=coreschema.String( - description="Longitude of the place to query for." - ), - ), - coreapi.Field( - "when", - required=False, - location="query", - schema=coreschema.String( - description="Date the TempSpatial temporal extent has to contain." - ), - ), - ] - ) def get_queryset(self): lat = self.request.query_params.get("lat", None) diff --git a/webpage/templates/webpage/partials/head.html b/webpage/templates/webpage/partials/head.html index ccff716..f6306d2 100644 --- a/webpage/templates/webpage/partials/head.html +++ b/webpage/templates/webpage/partials/head.html @@ -15,3 +15,19 @@ href="https://cdn.rawgit.com/afeld/bootstrap-toc/v1.0.1/dist/bootstrap-toc.min.css" /> + + + + diff --git a/webpage/templates/webpage/partials/navbar.html b/webpage/templates/webpage/partials/navbar.html index a4ea4c4..ff60976 100644 --- a/webpage/templates/webpage/partials/navbar.html +++ b/webpage/templates/webpage/partials/navbar.html @@ -52,7 +52,7 @@ Data