diff --git a/backend/app/api/api_v1/routers/kintone.py b/backend/app/api/api_v1/routers/kintone.py index 69f9db2..e4ba734 100644 --- a/backend/app/api/api_v1/routers/kintone.py +++ b/backend/app/api/api_v1/routers/kintone.py @@ -516,10 +516,22 @@ async def allapps(request:Request,c:config.KINTONE_ENV=Depends(getkintoneenv)): try: headers={config.API_V1_AUTH_KEY:c.API_V1_AUTH_VALUE} url = f"{c.BASE_URL}{config.API_V1_STR}/apps.json" - r = httpx.get(url,headers=headers) - return r.json() + offset = 0 + limit = 100 + all_apps = [] + + while True: + r = httpx.get(f"{url}?limit={limit}&offset={offset}", headers=headers) + json_data = r.json() + apps = json_data.get("apps",[]) + all_apps.extend(apps) + if len(apps)