fix(plugin): introduce response_type parameter in plugin list API to enable paginated response support (#22251)
This commit is contained in:
parent
a0b32b6027
commit
8e910d8c59
1 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ class PluginInstaller(BasePluginClient):
|
||||||
"GET",
|
"GET",
|
||||||
f"plugin/{tenant_id}/management/list",
|
f"plugin/{tenant_id}/management/list",
|
||||||
PluginListResponse,
|
PluginListResponse,
|
||||||
params={"page": 1, "page_size": 256},
|
params={"page": 1, "page_size": 256, "response_type": "paged"},
|
||||||
)
|
)
|
||||||
return result.list
|
return result.list
|
||||||
|
|
||||||
|
|
@ -45,7 +45,7 @@ class PluginInstaller(BasePluginClient):
|
||||||
"GET",
|
"GET",
|
||||||
f"plugin/{tenant_id}/management/list",
|
f"plugin/{tenant_id}/management/list",
|
||||||
PluginListResponse,
|
PluginListResponse,
|
||||||
params={"page": page, "page_size": page_size},
|
params={"page": page, "page_size": page_size, "response_type": "paged"},
|
||||||
)
|
)
|
||||||
|
|
||||||
def upload_pkg(
|
def upload_pkg(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue