Commit 34bbbfaf authored by Niklas Selke's avatar Niklas Selke
Browse files

adapted urls to match the pages

parent b2babba4
Pipeline #97352 passed with stages
in 1 minute and 20 seconds
......@@ -6,17 +6,17 @@ from geo_location_services.settings import DEBUG
urlpatterns = [
re_path(r'^$', LocationServicesRootView.as_view()),
re_path('admin/', admin.site.urls),
re_path(r'major_roads/', include('services.major_roads.urls'), name='major_roads'),
re_path(r'major_road/', include('services.major_roads.urls'), name='major_road'),
re_path(r'population_density/', include('services.population_density.urls'), name='population_density'),
re_path(r'topography_srtm/', include('services.topography_srtm.urls'), name='topography_srtm'),
re_path(r'stable_nightlights/', include('services.stable_nightlights.urls'), name='stable_nightlights'),
# re_path(r'wheat_production/', include('services.wheat_production.urls'), name='wheat_production'),
# re_path(r'rice_production/', include('services.rice_production.urls'), name='rice_production'),
re_path(r'ecoregions/', include('services.ecoregions.urls'), name='ecoregions'),
re_path(r'climatic_zones/', include('services.climatic_zones.urls'), name='climatic_zones'),
re_path(r'ecoregion/', include('services.ecoregions.urls'), name='ecoregion'),
re_path(r'climatic_zone/', include('services.climatic_zones.urls'), name='climatic_zone'),
re_path(r'nox_emissions/', include('services.nox_emissions.urls'), name='nox_emissions'),
# re_path(r'omi_no2/', include('services.omi_no2.urls'), name='omi_no2'),
re_path(r'htap_regions_tier1/', include('services.htap_regions_tier1.urls'), name='htap_regions_tier1'),
re_path(r'htap_region_tier1/', include('services.htap_regions_tier1.urls'), name='htap_region_tier1'),
# re_path(r'htap_regions_tier2/', include('services.htap_regions_tier2.urls'), name='htap_regions_tier2'),
re_path(r'population_number/', include('services.population_number.urls'), name='population_number'),
re_path(r'landcover/', include('services.landcover.urls'), name='landcover'),
......
......@@ -21,7 +21,7 @@ class LocationServicesRootView(APIView):
year= (for population_number: 1975, 1990, 2000, 2015
for stable_nightlights: 1992-2013)
- ecoregions:
- ecoregion:
description=[True|False]
Examples: see service URLs from https://toar-data-dev.fz-juelich.de/api/v2/geolocation_urls/
......@@ -33,17 +33,17 @@ class LocationServicesRootView(APIView):
data = [
'User interface APIs:',
OrderedDict([
('major_roads', request.build_absolute_uri()+'major_roads/'),
('major_road', request.build_absolute_uri()+'major_road/'),
('population_density', request.build_absolute_uri()+'population_density/'),
('topography_srtm', request.build_absolute_uri()+'topography_srtm/'),
('stable_nightlights', request.build_absolute_uri()+'stable_nightlights/'),
# ('wheat_production', request.build_absolute_uri()+'wheat_production/'),
# ('rice_production', request.build_absolute_uri()+'rice_production/'),
('ecoregions', request.build_absolute_uri()+'ecoregions/'),
('climatic_zones', request.build_absolute_uri()+'climatic_zones/'),
('ecoregion', request.build_absolute_uri()+'ecoregion/'),
('climatic_zone', request.build_absolute_uri()+'climatic_zone/'),
('nox_emissions', request.build_absolute_uri()+'nox_emissions/'),
# ('omi_no2', request.build_absolute_uri()+'omi_no2/'),
('htap_regions_tier1', request.build_absolute_uri()+'htap_regions_tier1/'),
('htap_region_tier1', request.build_absolute_uri()+'htap_region_tier1/'),
# ('htap_regions_tier2', request.build_absolute_uri()+'htap_regions_tier2/'),
('population_number', request.build_absolute_uri()+'population_number/'),
('landcover', request.build_absolute_uri()+'landcover/'),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment