1. Matthew Schinckel
  2. django-rest-api

Commits

Matthew Schinckel  committed 5c7942b

Removing unused template

  • Participants
  • Parent commits 0b1b260
  • Branches default

Comments (0)

Files changed (1)

File rest_api/templates/api/index.json

-[
-  "object-type":"api:roster:Collection",
-  "start-index":{{ start }},
-  "max-results": {{ max_results }},
-  "total-results": {{ objects.count }},
-  "links": [
-    {
-      "object-type":"api:roster:Link",
-      "allowed-methods": {{ model_api.allowed_methods_index }},
-      "href": "{{ model_api.href }}",
-      "type": "application/json",
-      "rel": "self"
-    }
-  ],
-  "entries": [
-    {% for object in objects %}
-      {
-        "object-type":"api:class_name:Link",
-        "allowed-methods": {{ model_api.allowed_methods }},
-        "href": "{{ object.href }}",
-        "type": "application/json",
-        "rel": "self"
-      }{% if forloop.last %}{% else %},{% endif %}
-    {% endfor %}
-    ]
-]