Skip to content

Commit

Permalink
use /roles/
Browse files Browse the repository at this point in the history
  • Loading branch information
Albin Stjerna committed Jul 27, 2017
1 parent c6c2119 commit 3cd48af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions storage_api/apis/introspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ def get(self):
return list(current_app.config['SUBSYSTEM'].keys())


@api.route('/role')
@api.route('/roles')
class Roles(Resource):

@api.doc(description="Get a list of all available roles")
def get(self):
return USER_ROLES


@api.route('/role/<string:role>/egroups')
@api.route('/roles/<string:role>/egroups')
class RoleEgroups(Resource):

@api.doc(description="Get a list of all egroups for a given role")
Expand All @@ -43,7 +43,7 @@ def get(self, role):
return list(current_app.config['{}_GROUPS'.format(role)])


@api.route('/role/<string:role>/am_i_a')
@api.route('/roles/<string:role>/am_i_a')
class AmIA(Resource):

@api.doc(description=("Returns True if the user is the given role,"
Expand Down

0 comments on commit 3cd48af

Please sign in to comment.