From 92e0fc826938b445dbb0456c4177b4950c370fbf Mon Sep 17 00:00:00 2001 From: Adam Shimali Date: Thu, 24 Mar 2016 14:40:20 +0000 Subject: [PATCH] Fix docs to line up with api --- app/templates/views/documentation.html | 40 ++++++++++++-------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/app/templates/views/documentation.html b/app/templates/views/documentation.html index 431c5980d..9302ca79a 100644 --- a/app/templates/views/documentation.html +++ b/app/templates/views/documentation.html @@ -99,16 +99,11 @@ {{""" { - 'notification': - { - 'to': '+441234123123', - 'createdAt': '2016-01-01T09:00:00.999999Z', - 'status': 'created', - 'id': 1, - 'message': '....', - 'method': 'sms', - 'jobId': 1 - } + 'data':{ + 'notification': { + 'id':1 + } + } } """|syntax_highlight_json }} @@ -119,18 +114,19 @@ {{""" { - 'notification': - { - 'status': 'sent', - 'createdAt': '2016-01-01T09:00:00.999999Z', - 'to': '+447827992607', - 'method': 'sms', - 'sentAt': '2016-01-01T09:01:00.999999Z', - 'id': 1, - 'message': '...', - 'jobId': 1, - 'sender': 'sms-partner' - } + 'data':{ + 'notification': { + 'status':'sent', + 'createdAt':'2016-01-01T09:00:00.999999Z', + 'to':'+447827992607', + 'method':'sms', + 'sentAt':'2016-01-01T09:01:00.999999Z', + 'id':1, + 'message':'...', + 'jobId':1, + 'sender':'sms-partner' + } + } } """|syntax_highlight_json }}