Skip to content

Commit 62e669a

Browse files
committed
Add Obelisk CORE URLs
1 parent 7b49cb8 commit 62e669a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/obelisk/asynchronous/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ async def send(
193193
"""
194194

195195
response = await self.http_post(
196-
f"{self._ingest_url}/{dataset}/data/ingest", data=[x.model_dump(mode='json') for x in data]
196+
f"{self._root_url}/{dataset}/data/ingest", data=[x.model_dump(mode='json') for x in data]
197197
)
198198
if response.status_code != 204:
199199
msg = f"An error occured during data ingest. Status {response.status_code}, message: {response.text}"
@@ -206,7 +206,7 @@ async def fetch_single_chunk(
206206
params: QueryParams
207207
) -> QueryResult:
208208
response = await self.http_get(
209-
f"{self._events_url}/{params.dataset}/data/query",
209+
f"{self._root_url}/{params.dataset}/data/query",
210210
params=params.to_dict()
211211
)
212212

src/obelisk/types/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def token_url(self) -> str:
6363
case ObeliskKind.HFS:
6464
return 'https://obelisk-hfs.discover.ilabt.imec.be/auth/realms/obelisk-hfs/protocol/openid-connect/token'
6565
case ObeliskKind.CORE:
66-
raise NotImplementedError()
66+
return 'https://auth.obelisk.discover.ilabt.imec.be/realms/obelisk/protocol/openid-connect/token'
6767

6868
@property
6969
def root_url(self) -> str:
@@ -73,7 +73,7 @@ def root_url(self) -> str:
7373
case ObeliskKind.HFS:
7474
return 'https://obelisk-hfs.discover.ilabt.imec.be'
7575
case ObeliskKind.CORE:
76-
raise NotImplementedError()
76+
return 'https://obelisk.discover.ilabt.imec.be/datasets'
7777

7878
@property
7979
def query_url(self) -> str:

0 commit comments

Comments
 (0)