Switch HTTP method from GET to POST in server request.

Updated the SMD server client to use POST instead of GET for sending requests. This change ensures the payload is sent as JSON in compliance with the server's expected input format.
This commit is contained in:
ThomasTaroni 2025-06-21 20:25:52 +02:00
parent 8eda903185
commit 87d4884eea

View file

@ -35,7 +35,7 @@ async def smd_detail_article(article_id):
payload = {"filters": [], "pagination": {"pageSize": 1, "currentPage": 1}}
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers, payload=payload) as response:
async with session.post(url, headers=headers, json=payload) as response:
if response.status == 200:
return await response.json() # JSON asynchron lesen
else: