Fetch endpoints for notifications

- includes check on token type to ensure clients can perform admin style fetches
This commit is contained in:
Martyn Inglis
2016-03-01 13:30:10 +00:00
parent bf4417c05f
commit c5a993ead1
7 changed files with 319 additions and 6 deletions

View File

@@ -269,11 +269,11 @@ def sample_notification(notify_db,
if job is None:
job = sample_job(notify_db, notify_db_session, service=service, template=template)
notificaton_id = uuid.uuid4()
notification_id = uuid.uuid4()
to = '+44709123456'
data = {
'id': notificaton_id,
'id': notification_id,
'to': to,
'job': job,
'service': service,