From 9e72acf84b52c1ba93820949d45818b10de5218d Mon Sep 17 00:00:00 2001 From: "maxiaozhe@alicorns.co.jp" Date: Thu, 12 Oct 2023 14:10:20 +0900 Subject: [PATCH] =?UTF-8?q?DB=E8=A8=AD=E8=A8=88=E5=9B=B3=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/api/api_v1/routers/kintone.py | 13 +- document/ALCKintone_20231012.drawio | 804 ++++++++++++++++++++++ 2 files changed, 812 insertions(+), 5 deletions(-) create mode 100644 document/ALCKintone_20231012.drawio diff --git a/backend/app/api/api_v1/routers/kintone.py b/backend/app/api/api_v1/routers/kintone.py index 3a78c61..6564b2a 100644 --- a/backend/app/api/api_v1/routers/kintone.py +++ b/backend/app/api/api_v1/routers/kintone.py @@ -259,11 +259,14 @@ async def upload(files:t.List[UploadFile] = File(...)): @r.get("/allapps",) async def allapps(): - headers={c.API_V1_AUTH_KEY:c.API_V1_AUTH_VALUE} - url = f"{c.BASE_URL}{c.API_V1_STR}/apps.json" - r = httpx.get(url,headers=headers) - return r.json() - + try: + headers={c.API_V1_AUTH_KEY:c.API_V1_AUTH_VALUE} + url = f"{c.BASE_URL}{c.API_V1_STR}/apps.json" + r = httpx.get(url,headers=headers,timeout=httpx.Timeout(10)) + return r.json() + except Exception as e: + print(f"異常発生しました。{type(e).__name__},{e}") + @r.get("/app") async def app(app:str): headers={c.API_V1_AUTH_KEY:c.API_V1_AUTH_VALUE} diff --git a/document/ALCKintone_20231012.drawio b/document/ALCKintone_20231012.drawio new file mode 100644 index 0000000..34d3d3d --- /dev/null +++ b/document/ALCKintone_20231012.drawio @@ -0,0 +1,804 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +