def post(self, email=None, password=None): """ ' PURPOSE ' Given and email and password, create a new user. ' Returns the new user's identifier ' PARAMETERS ' <str email> ' <str password> ' RETURNS ' dict( id ) ' id -> the identifier of the created user """ user = UserModel(email=email) user.set_password(password) user.save() return { 'id': user.key.id }