diff --git a/endpoints/api/image.py b/endpoints/api/image.py index 700891121..4aff05e93 100644 --- a/endpoints/api/image.py +++ b/endpoints/api/image.py @@ -60,6 +60,7 @@ class RepositoryImage(RepositoryParamResource): @require_repo_read @nickname('getImage') def get(self, namespace, repository, image_id): + """ Get the information available for the specified image. """ image = model.get_repo_image(namespace, repository, image_id) if not image: abort(404) @@ -75,6 +76,7 @@ class RepositoryImageChanges(RepositoryParamResource): @require_repo_read @nickname('getImageChanges') def get(self, namespace, repository, image_id): + """ Get the list of changes for the specified image. """ image = model.get_repo_image(namespace, repository, image_id) if not image: diff --git a/endpoints/api/permission.py b/endpoints/api/permission.py index 6fd67f62d..df2633a52 100644 --- a/endpoints/api/permission.py +++ b/endpoints/api/permission.py @@ -107,6 +107,7 @@ class RepositoryUserPermission(RepositoryParamResource): @require_repo_admin @nickname('getUserPermission') def get(self, namespace, repository, username): + """ Get the Fetch the permission for the specified user. """ logger.debug('Get repo: %s/%s permissions for user %s' % (namespace, repository, username)) perm = model.get_user_reponame_permission(username, namespace, repository)