New CLI API: removed method to query user id by name.
@@ -22,20 +22,3 @@ class User(Resource):
abort(404)
return user
-
-
-@ns.route('/id/<username>')
-class User(Resource):
-
- @auth_required(['user'], check_project_access=False)
- def get(self, username):
- user_id = g.db.execute_one('''
- SELECT id
- FROM "user"
- WHERE username = %s
- ''', [username])
-
- if not user_id:
- abort(400, 'User not found.')
-
- return OK('User exists.', { 'user_id': user_id[0] })
