X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d0ab1d8908cadac9f51a17e2fe9e1193f14e28cc..0e87ae0739ed3e72301b7b718098f97a7f06a5d8:/apps/piston/templates/documentation.html diff --git a/apps/piston/templates/documentation.html b/apps/piston/templates/documentation.html new file mode 100644 index 000000000..d7b18300d --- /dev/null +++ b/apps/piston/templates/documentation.html @@ -0,0 +1,55 @@ +{% load markup %} + + + + + Piston generated documentation + + + + +

API Documentation

+ + {% for doc in docs %} + +

{{ doc.name|cut:"Handler" }}:

+ +

+ {{ doc.get_doc|default:""|restructuredtext }} +

+ +

+ URL: {{ doc.get_resource_uri_template }} +

+ +

+ Accepted methods: {% for meth in doc.allowed_methods %}{{ meth }}{% if not forloop.last %}, {% endif %}{% endfor %} +

+ +
+ {% for method in doc.get_all_methods %} + +
+ method {{ method.name }}({{ method.signature }}){% if method.stale %} - inherited{% else %}:{% endif %} + +
+ + {% if method.get_doc %} +
+ {{ method.get_doc|default:""|restructuredtext }} +
+ {% endif %} + + {% endfor %} +
+ + {% endfor %} + +