UKSpaceAgency / space-activity-licensing-alpha

UK Space Activity Licensing Alpha
MIT License
0 stars 1 forks source link

Adds Notifications to the Happy Path and API #87

Closed davelovemartin closed 6 years ago

davelovemartin commented 6 years ago

Added an API for Notify:

/api/v1/notify/demo-email fires off the demo email... accessible from getPageAndEmail triggered when someone visitsoperator/operator-submission-ready-email /api/v1/notify/demo-sms fires off the demo sms... accessible from getPageAndSms triggered when someone visitsoperator/email-submission-ready /api/v1/notify/generic-email fires off a generic email which accepts a request body, eg. { message: 'your message here', subject: 'your subject here' } /api/v1/notify/generic-sms fires off a generic sms... accepts a request body, eg. { message: 'your message here' }

Requires config.WHITE_LISTED_EMAIL to be added to config.development.yaml AND to notifications.service.gov.uk > API integration > Whitelist.

Also, add the phone number to receive the notification to config.DEMO_PHONE_NUMBER.

You'll need the config.NOTIFY_API_KEY set too!