Commit d0ba1a54 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki

pithos: change POST /tokens

move SNF:uiURL under each endpoint
parent 7806941e
......@@ -99,10 +99,10 @@ def authenticate(request):
endpoints = []
for l in [e.data.values('key', 'value') for e in s.endpoints.all()]:
endpoint = dict((d['key'], d['value']) for d in l)
endpoint["SNF:uiURL"] = s.component.url
endpoints.append(endpoint)
append({"name": s.name,
"type": s.type,
"SNF:uiURL": s.component.url,
"endpoints": endpoints,
"endpoints_links": []})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment