esl / MongoosePush

MongoosePush is a simple Elixir RESTful service allowing to send push notification via FCM and/or APNS.
Apache License 2.0
108 stars 24 forks source link

MIM-867 Use OpenAPI to validate and cast Phoenix requests to structs #149

Closed leszke closed 4 years ago

leszke commented 4 years ago

This awaited PR addresses the story of making it possible to perform a proper (in terms of already developed APIs) push notification send request to phoenix backend HTTP endpoint (APIv1/APIv2/APIv3). Successful requests are replied with 200 status, while improper ones with 422, including the brief description of what is not valid within the request.

In the home stretch I took the opportunity to remove unused code introduced in one of the former PRs, as well as did some minor alignments to already existing schemas definitions.

Known shortcomings of this PR: