@auth.login_required
@AuthService.admin_permission_required
@api.response(201, 'User successfully created.')
@api.doc('create a new user(only for admin)')
@api.expect(_user, validate=True)
def post(self):
    'Creates a new User(only for admin) '
    user_service = UserService()
    return user_service.create_user(request.json)
Creates a new User(only for admin)
@auth.login_required
@AuthService.admin_permission_required
@api.response(201, 'User successfully created.')
@api.doc('create a new user(only for admin)')
@api.expect(_user, validate=True)
def post(self):
    ' '
    user_service = UserService()
    return user_service.create_user(request.json)