0.1.2 • Published 9 years ago

bemily-user v0.1.2

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

User-Plugin

Routes

####GET

RessourceDescriptionon Successon Failure
/users/:IDreturns profile information for requested user IDjson objectstatusCode: 404
/mereturns profile of current userjson objectstatusCode: 404

####POST |Ressource | Description | on Success | on Failure | |---|---|---|---| |/users | create new user | statusCode: 200 | statusCode: 404 |

####PUT |Ressource | Description | on Success | on Failure | |---|---|---|---| |/users | update user informations | statusCode: 200 | statusCode: 404 | |/users/:GROUP_ID | add group to user | statusCode: 200 | statusCode: 404 |

Tests

Tests can be run with npm test or make test, make test-cov and test-cov-html. Note: npm test points to make test-cov. This is inspired from many hapi plugins.