def GET(self):
"""
Returns list of recent identifiers.
HTTP Success:
200 OK
HTTP Error:
401 Unauthorized
:param type: The DID type.
"""
header('Content-Type', 'application/x-json-stream')
params = parse_qs(ctx.query[1:])
type = None
if 'type' in params:
type = params['type'][0]
try:
for did in list_new_dids(type):
yield dumps(did, cls=APIEncoder) + '\n'
except RucioException, error:
raise generate_http_error(500, error.__class__.__name__, error.args[0])
except Exception, error:
raise InternalError(error)
评论列表
文章目录