From a32fd36b1bd18291479416d636ed27ecd0de6ce8 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 21 Mar 2016 14:31:01 +0000 Subject: [PATCH] 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. --- app/main/views/send.py | 1 - app/templates/views/documentation.html | 2 +- app/templates/views/send-from-api.html | 7 +++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/main/views/send.py b/app/main/views/send.py index 41face291..3e658b9f5 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -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 ) diff --git a/app/templates/views/documentation.html b/app/templates/views/documentation.html index 13e6943a0..431c5980d 100644 --- a/app/templates/views/documentation.html +++ b/app/templates/views/documentation.html @@ -161,7 +161,7 @@

API endpoint

- https://api.notify.works + https://api.notifications.service.gov.uk/

diff --git a/app/templates/views/send-from-api.html b/app/templates/views/send-from-api.html index 213490ac2..9bb1ddb4f 100644 --- a/app/templates/views/send-from-api.html +++ b/app/templates/views/send-from-api.html @@ -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 @@
-      {{- 'POST {}/notifications/{}'.format(
-        api_host,
+      {{- 'POST https://api.notifications.service.gov.uk/notifications/{}'.format(
         template.template_type
       ) -}}
     

-
See the developer documentation for full details. +
See the developer documentation for full details.

{% endblock %}