hapi-routes-notifications

2.0.5 • Public • Published

Build Status Coverage Status NPM Version Dependency Status NPM Downloads Issues HAPI 8.0 API Documentation

(C) 2014 Martin Wawrusch

Provides HAPI based notification management endpoints.

POST /users/me/notifications

Creates a new notification. The notification is owned by the user who posts this (taken from the id field from the credentials.) The default options limit to one per user, but this can be overridden.

more later

get /users/me/notifications/active --> Retrieves the currently active notification for the user post /users/me/notification/active get /users/me/notifications

get /notifications/:notificationId patch /notifications/:notificationId delete /notifications/:notificationId

post /notifications/:notificationId/credit-cards/stripe-card-token get /notifications/:notificationId/credit-cards delete /notifications/:notificationId/credit-cards/:creditCardId get /notifications/:notificationId/default-credit-card

Later post /notifications/:notificationId/users/invite

Dependencies

  • HAPI >= 6.5.0

Plugins that must be loaded into your hapi server:

  • hapi-store-notifications

See also

and additionally

Contributing

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
  • Fork the project
  • Start a feature/bugfix branch
  • Commit and push until you are happy with your contribution
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • Please try not to mess with the package.json, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright

Copyright (c) 2014 Martin Wawrusch

Readme

Keywords

none

Package Sidebar

Install

npm i hapi-routes-notifications

Weekly Downloads

9

Version

2.0.5

License

none

Last publish

Collaborators

  • mwawrusch