mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 04:48:26 -04:00
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:
@@ -209,7 +209,6 @@ def send_from_api(service_id, template_id):
|
|||||||
'views/send-from-api.html',
|
'views/send-from-api.html',
|
||||||
template=template,
|
template=template,
|
||||||
payload=json.dumps(payload, indent=4),
|
payload=json.dumps(payload, indent=4),
|
||||||
api_host=current_app.config['API_HOST_NAME'],
|
|
||||||
service_id=service_id
|
service_id=service_id
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -161,7 +161,7 @@
|
|||||||
<h2 class="heading-medium">API endpoint</h2>
|
<h2 class="heading-medium">API endpoint</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
https://api.notify.works
|
https://api.notifications.service.gov.uk/
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{% from "components/sms-message.html" import sms_message %}
|
{% from "components/sms-message.html" import sms_message %}
|
||||||
|
|
||||||
{% block page_title %}
|
{% block page_title %}
|
||||||
Developer documentation – GOV.UK Notify
|
API integration – GOV.UK Notify
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block maincolumn_content %}
|
{% block maincolumn_content %}
|
||||||
@@ -48,15 +48,14 @@
|
|||||||
|
|
||||||
<div class="highlight" style="background: #f8f8f8">
|
<div class="highlight" style="background: #f8f8f8">
|
||||||
<pre style="line-height: 125%">
|
<pre style="line-height: 125%">
|
||||||
{{- 'POST {}/notifications/{}'.format(
|
{{- 'POST https://api.notifications.service.gov.uk/notifications/{}'.format(
|
||||||
api_host,
|
|
||||||
template.template_type
|
template.template_type
|
||||||
) -}}
|
) -}}
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<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>
|
</p>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user