Skip to content

Commit

Permalink
add more information to "/" endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed Nov 24, 2023
1 parent d698338 commit 8abd19f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/simqueue/resources/for_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
SessionStatus,
)
from ..data_repositories import SourceFileDoesNotExist, SourceFileIsTooBig, EBRAINSDrive
from .. import db, oauth, utils
from .. import db, oauth, utils, settings
from ..globals import PROVIDER_QUEUE_NAMES

logger = logging.getLogger("simqueue")
Expand Down Expand Up @@ -86,6 +86,11 @@ def about_this_api():
"about": "This is the EBRAINS Neuromorphic Computing Job Queue API.",
"version": "3",
"links": {"documentation": "/docs"},
"authentication": {
"server": settings.EBRAINS_IAM_SERVICE_URL,
"client-id": settings.EBRAINS_IAM_CLIENT_ID,
"collaboratory": settings.EBRAINS_COLLAB_SERVICE_URL,
},
}


Expand Down
5 changes: 5 additions & 0 deletions api/simqueue/tests/test_auth_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ def test_read_main():
assert response.status_code == 200
assert response.json() == {
"about": "This is the EBRAINS Neuromorphic Computing Job Queue API.",
"authentication": {
"client-id": None,
"collaboratory": "https://wiki.ebrains.eu/rest/v1/",
"server": "https://iam.ebrains.eu/auth/realms/hbp",
},
"version": "3",
"links": {"documentation": "/docs"},
}

0 comments on commit 8abd19f

Please sign in to comment.