blob: 9f6a60ecd41c7785fe328e4dbd9147e4a25c2e79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
from opendc.models.project import Project
from opendc.util.rest import Response
def GET(request):
"""Find all authorizations for a Project."""
request.check_required_parameters(path={'projectId': 'string'})
project = Project.from_id(request.params_path['projectId'])
project.check_exists()
project.check_user_access(request.google_id, False)
authorizations = project.get_all_authorizations()
return Response(200, 'Successfully retrieved project authorizations', authorizations)
|