v3.0 (Dragon-fly)

Min updates:

  • Updated delete calls, now return boolean result.
  • Added copyright and license documentation.
  • Updated creation DB script.

Big updates:

  • Bugs prevented and corrected.
  • Added a migration tool to update old database contents to the new Push API version (it is only needed if you are using some of the old versions).
  • Hard code refactoring (now models will support all required methods and controllers just call them).
  • Added new call to add various devices identifications per user (more than one email, android id, ...).
  • GET users, themes, channels and subjects call now supports pagination system.
  • Updated UserController with the new calls and new refactored model system.
  • Added a Device model and updated User system (both models should work as one model).
  • PushApi is able to handle more than one device identifications per user in order to send notifications to all of them.
  • Added new method to remove all devices of the same type (emails not available).
  • Removed functionalities from LogController to QueueController.

New calls:

Available methodsRouteDescription
POST|GET/user/:id/devicePOST: Adds devices to user :id.
GET: Retrives user :id device unique id given its reference by param.
GET|DELETE/user/:id/device/:idDeviceGET: Retrives user :id device unique id given its reference by param.
DELETE: Removes the device :idDevice from user :id.
DELETE/user/:id/device/type/:typeRemoves all user devices given its type.
PUT/user/:id/preferencesUpdates all user preferences to the same option. It can enable/disable all or choose to which device wants to receive all the notifications.

Changelog