add broadcast message crud

new blueprint `/service/<id>/broadcast-message` with the following
endpoints:

* GET / - get all broadcast messages for a service
* GET /<id> - get a single broadcast message
* POST / - create a new broadcast message
* POST /<id> - update an existing broadcast message's data
* POST /<id>/status - move a broadcast message to a new status

I've kept the regular data update (eg personalisation, start and end
times) separate from the status update, just to keep separation of
concerns a bit more rigid, especially around who can update.

I've included schemas for the three POSTs, they're pretty
straightforward.
This commit is contained in:
Leo Hemsted
2020-07-07 11:42:38 +01:00
parent 40f747d8ef
commit 67f6dcae45
6 changed files with 243 additions and 2 deletions

View File