Commit for adding API sample for registering User

Commit for adding API sample for registering User