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

@@ -0,0 +1,4 @@
{% extends "baseapi.html" %}
{% block content %}{
{% for expedition in object_list %}"{{expedition.year}}": ["{{expedition.name}}","{{expedition.get_absolute_url}}"]
{% endfor %} }{% endblock %}

View File

@@ -0,0 +1,3 @@
{% extends "baseapi.html" %}
{% block content %}{% for expedition in object_list %}{{expedition.year}} "{{expedition.name}}" "{{expedition.get_absolute_url}}"
{% endfor %}{% endblock %}