(C) 2014 Martin Wawrusch
Provides HAPI based account management endpoints.
Creates a new account. The account 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.
get /users/me/accounts/active --> Retrieves the currently active account for the user post /users/me/account/active get /users/me/accounts
get /accounts/:accountId patch /accounts/:accountId delete /accounts/:accountId
post /accounts/:accountId/credit-cards/stripe-card-token get /accounts/:accountId/credit-cards delete /accounts/:accountId/credit-cards/:creditCardId get /accounts/:accountId/default-credit-card
Later post /accounts/:accountId/users/invite
- HAPI >= 6.5.0
- hapi-store-accounts
- hapi-auth-bearer-mw
- hapi-loggly
- hapi-mandrill
- hapi-mongoose-db-connector
- hapi-oauth-store-multi-tenant
- hapi-routes-authorization-and-session-management
- hapi-routes-oauth-management
- hapi-routes-accounts
- hapi-routes-status
- hapi-routes-users-authorizations
- hapi-routes-users
- hapi-user-store-multi-tenant
and additionally
- api-pagination
- mongoose-oauth-store-multi-tenant
- mongoose-rest-helper
- mongoose-user-store-multi-tenant
- 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 (c) 2014 Martin Wawrusch