2023-07-25 09:16:04 +00:00
18 changed files with 483 additions and 48 deletions

View File

@@ -264,6 +264,15 @@ async def allapps():
r = httpx.get(url,headers=headers)
return r.json()
@r.get("/app")
async def app(app:str):
headers={c.API_V1_AUTH_KEY:c.API_V1_AUTH_VALUE}
url = f"{c.BASE_URL}{c.API_V1_STR}/app.json"
params ={"id":app}
r = httpx.get(url,headers=headers,params=params)
return r.json()
@r.get("/appfields")
async def appfields(app:str):
return getfieldsfromkintone(app)

View File

@@ -31,7 +31,6 @@ async def get_current_user(
raise credentials_exception
return user
async def get_current_active_user(
current_user: models.User = Depends(get_current_user),
):