Completed user REST APIs

Completed user REST APIs
Can we not abstract this in a `createUser` function?