2.1.2 • Published 9 years ago

hapi-routes-accounts v2.1.2

Weekly downloads
19
License
-
Repository
github
Last release
9 years ago

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

(C) 2014 Martin Wawrusch

Provides HAPI based account management endpoints.

POST /users/me/accounts

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.

more later

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

Dependencies

  • HAPI >= 6.5.0

Plugins that must be loaded into your hapi server:

  • hapi-store-accounts

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

2.1.2

9 years ago

2.1.1

9 years ago

2.0.1

9 years ago

1.0.9

9 years ago

1.0.8

10 years ago

1.0.7

10 years ago