/usr/share/pyshared/piston/templates/documentation.html is in python-django-piston 0.2.3-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | {% load markup %}
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>
Piston generated documentation
</title>
<style type="text/css">
body {
background: #fffff0;
font: 1em "Helvetica Neue", Verdana;
padding: 0 0 0 25px;
}
</style>
</head>
<body>
<h1>API Documentation</h1>
{% for doc in docs %}
<h3>{{ doc.name|cut:"Handler" }}:</h3>
<p>
{{ doc.get_doc|default:""|restructuredtext }}
</p>
<p>
URL: <b>{{ doc.get_resource_uri_template }}</b>
</p>
<p>
Accepted methods: {% for meth in doc.allowed_methods %}<b>{{ meth }}</b>{% if not forloop.last %}, {% endif %}{% endfor %}
</p>
<dl>
{% for method in doc.get_all_methods %}
<dt>
method <i>{{ method.name }}</i>({{ method.signature }}){% if method.stale %} <i>- inherited</i>{% else %}:{% endif %}
</dt>
{% if method.get_doc %}
<dd>
{{ method.get_doc|default:""|restructuredtext }}
<dd>
{% endif %}
{% endfor %}
</dl>
{% endfor %}
</body>
</html>
|