Fix some documentation.
This commit is contained in:
parent
cd276773ff
commit
ae6bfb072d
1 changed files with 3 additions and 1 deletions
|
@ -91,7 +91,7 @@ class RepositoryToken(RepositoryParamResource):
|
|||
@require_repo_admin
|
||||
@nickname('getTokens')
|
||||
def get(self, namespace, repository, code):
|
||||
""" Fetch the specified token information. """
|
||||
""" Fetch the specified repository token information. """
|
||||
try:
|
||||
perm = model.get_repo_delegate_token(namespace, repository, code)
|
||||
except model.InvalidTokenException:
|
||||
|
@ -103,6 +103,7 @@ class RepositoryToken(RepositoryParamResource):
|
|||
@nickname('changeToken')
|
||||
@validate_json_request('TokenPermission')
|
||||
def put(self, namespace, repository, code):
|
||||
""" Update the permissions for the specified repository token. """
|
||||
new_permission = request.get_json()
|
||||
|
||||
logger.debug('Setting permission to: %s for code %s' %
|
||||
|
@ -121,6 +122,7 @@ class RepositoryToken(RepositoryParamResource):
|
|||
@require_repo_admin
|
||||
@nickname('deleteToken')
|
||||
def delete(self, namespace, repository, code):
|
||||
""" Delete the repository token. """
|
||||
token = model.delete_delegate_token(namespace, repository, code)
|
||||
|
||||
log_action('delete_repo_accesstoken', namespace,
|
||||
|
|
Reference in a new issue