第一段階開発完了

This commit is contained in:
2023-07-25 01:46:17 +09:00
parent 97e22fe7c3
commit c83a9d73ab
18 changed files with 483 additions and 48 deletions

Binary file not shown.

View File

@@ -263,6 +263,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),
):