Merge pull request #859 from alphagov/point-documentation-at-clients

Link to client documentation, not API documentation
This commit is contained in:
Chris Hill-Scott
2016-08-11 16:44:14 +01:00
committed by GitHub
6 changed files with 27 additions and 26 deletions
+14 -6
View File
@@ -58,11 +58,19 @@
{{ api_key(current_service.id, "Service ID", thing="service ID") }}
</div>
<h2 class="heading-small">Documentation</h2>
<p>
See the
<a href="{{ url_for('.documentation') }}">
API documentation</a> for clients and specfications.
</p>
<h2 class="heading-small">API clients</h2>
<ul class="list list-bullet">
{% for name, url in [
('Java', 'https://github.com/alphagov/notifications-java-client'),
('Node JS', 'https://github.com/alphagov/notifications-node-client'),
('PHP', 'https://github.com/alphagov/notifications-php-client'),
('Python', 'https://github.com/alphagov/notifications-python-client'),
('Ruby', 'https://github.com/alphagov/notifications-ruby-client')
] %}
<li>
<a href="{{ url }}">{{ name }}</a>
</li>
{% endfor %}
</ul>
{% endblock %}
-9
View File
@@ -32,13 +32,4 @@
{{ api_key(template.id, name="Template ID", thing='template ID') }}
</div>
{% if personalisation %}
<h2 class="heading-small">Personalisation (all fields are required)</h2>
{{ personalisation|syntax_highlight_json }}
{% endif %}
<p>
<br />See the <a href="{{ url_for(".documentation") }}">developer documentation</a> for full details.
</p>
{% endblock %}