mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 13:03:46 +00:00
First implementation of html API, both TSV and JSON
This commit is contained in:
4
templates/core/expeditions_json_list.html
Normal file
4
templates/core/expeditions_json_list.html
Normal 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 %}
|
||||
3
templates/core/expeditions_tsv_list.html
Normal file
3
templates/core/expeditions_tsv_list.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user