mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-08 08:28:24 -04:00
Add a new table to store the api information for a service inbound sms message.
Including: - url to push the inbound sms to - bearer_token to be added to the header of the request. The services will be expected to manage these properties.
This commit is contained in:
10
app/dao/service_inbound_api_dao.py
Normal file
10
app/dao/service_inbound_api_dao.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from app import db
|
||||
from app.authentication.utils import generate_secret
|
||||
from app.dao.dao_utils import transactional
|
||||
|
||||
|
||||
@transactional
|
||||
def save_service_inbound_api(service_inbound_api):
|
||||
|
||||
service_inbound_api.bearer_token = generate_secret(service_inbound_api.bearer_token)
|
||||
db.session.add(service_inbound_api)
|
||||
Reference in New Issue
Block a user