Rebecca Law
f5e3c6f63b
Remove print stmt and added assert error content
2016-11-17 14:02:44 +00:00
Rebecca Law
df62be421f
Make email_from and subject required attributes of the email_content schema.
...
Update the format_checkers to raise the specific exception that why the validator can handle multiple messages.
Which led to a refactor of build_error_message.
2016-11-16 17:25:00 +00:00
Rebecca Law
b0ee09a9f6
Implemented the post email notifications endpoint for v2
2016-11-14 13:56:09 +00:00
Rebecca Law
488ba7a1ef
Remove import
2016-11-11 10:56:21 +00:00
Rebecca Law
b0d88e0888
Removed OrderedDict
...
Added missing assert in test
2016-11-11 10:50:38 +00:00
Rebecca Law
c758694b98
Change validation error message to a string from a dict.
2016-11-10 16:30:51 +00:00
Rebecca Law
346d90e319
update V2 error response to
...
{status_code: 403,
errors: [error: AuthError, message: token has expired}]
}
2016-11-09 14:56:54 +00:00
Rebecca Law
4cb38e2d12
Use status_code in error response.
...
Remove code.
2016-11-02 14:58:39 +00:00
Rebecca Law
db91a87fb2
Remove link from v2 error response
2016-11-02 14:48:15 +00:00
Rebecca Law
36ac00811d
Create dict for the fields in the error response.
2016-11-02 09:13:48 +00:00
Rebecca Law
23a4f00e56
New package structure for the version 2 of the public api.
...
Start building up the validators required for post notificaiton.
The app/v2/errors.py is a rough sketch, will be passed a code, the error can look up the message and link for the error message.
2016-10-25 18:04:03 +01:00
Rebecca Law
a5e07d8aff
V2 schemas for post sms notifications, post_sms_request and post_sms_response
2016-10-25 14:53:31 +01:00