Merge pull request #322 from alphagov/use-real-api-endpoints

Use real API endpoints in documentation
This commit is contained in:
Chris Hill-Scott
2016-03-21 17:33:33 +00:00
3 changed files with 4 additions and 6 deletions

View File

@@ -210,7 +210,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 %}