2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 20:07:12 +00:00

First implementation of html API, both TSV and JSON

This commit is contained in:
Philip Sargent
2020-07-26 20:48:25 +01:00
parent 69b843a824
commit 0cf3b869af
6 changed files with 66 additions and 35 deletions

View File

@@ -45,6 +45,8 @@ actualurlpatterns = [
url(r'^expedition/(\d+)$', views_logbooks.expedition, name="expedition"),
url(r'^expeditions/?$', views_logbooks.ExpeditionListView.as_view(), name="expeditions"),
url(r'^api/expeditions_tsv$', views_logbooks.Expeditions_tsvListView.as_view()),
url(r'^api/expeditions_json$', views_logbooks.Expeditions_jsonListView.as_view()),
url(r'^personexpedition/(?P<first_name>[A-Z]*[a-z&;]*)[^a-zA-Z]*(?P<last_name>[A-Z]*[a-zA-Z&;]*)/(?P<year>\d+)/?$', views_logbooks.personexpedition, name="personexpedition"),
url(r'^logbookentry/(?P<date>.*)/(?P<slug>.*)/?$', views_logbooks.logbookentry,name="logbookentry"),
# url(r'^newlogbookentry/(?P<expeditionyear>.*)$', views_logbooks.newLogbookEntry, name="newLogBookEntry"), # Needed !