Use real API endpoints in documentation

There is no need to make the API endpoints environment-specific. But it
is still useful to know what the endpoint is.

Also fixes a broken link on the integration page.
This commit is contained in:
Chris Hill-Scott
2016-03-21 14:31:01 +00:00
parent 234fe387df
commit a32fd36b1b
3 changed files with 4 additions and 6 deletions

View File

@@ -209,7 +209,6 @@ def send_from_api(service_id, template_id):
'views/send-from-api.html',
template=template,
payload=json.dumps(payload, indent=4),
api_host=current_app.config['API_HOST_NAME'],
service_id=service_id
)

View File

@@ -161,7 +161,7 @@
<h2 class="heading-medium">API endpoint</h2>
<p>
https://api.notify.works
https://api.notifications.service.gov.uk/
</p>
</div>

View File

@@ -3,7 +3,7 @@
{% from "components/sms-message.html" import sms_message %}
{% block page_title %}
Developer documentation GOV.UK Notify
API integration GOV.UK Notify
{% endblock %}
{% block maincolumn_content %}
@@ -48,15 +48,14 @@
<div class="highlight" style="background: #f8f8f8">
<pre style="line-height: 125%">
{{- 'POST {}/notifications/{}'.format(
api_host,
{{- 'POST https://api.notifications.service.gov.uk/notifications/{}'.format(
template.template_type
) -}}
</pre>
</div>
<p>
<br />See the <a href="#">developer documentation</a> for full details.
<br />See the <a href="{{ url_for(".documentation") }}">developer documentation</a> for full details.
</p>
{% endblock %}