Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
d0ba1a54
Commit
d0ba1a54
authored
Jun 11, 2013
by
Sofia Papagiannaki
Browse files
pithos: change POST /tokens
move SNF:uiURL under each endpoint
parent
7806941e
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/api/tokens.py
View file @
d0ba1a54
...
...
@@ -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"
:
[]})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment