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:
parent
8eda903185
commit
87d4884eea
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue