Lots of changes to get to FastAPI 95.1
This commit is contained in:
@@ -78,7 +78,7 @@ router = APIRouter()
|
||||
@router.patch('/grant/{grant_id}', response_model=Resp_Body_Base)
|
||||
async def patch_grant_obj(
|
||||
grant_obj: Grant_In,
|
||||
grant_id: str = Query(..., min_length=11, max_length=22),
|
||||
grant_id: str = Path(min_length=11, max_length=22),
|
||||
|
||||
return_obj: bool = True,
|
||||
inc_event_abstract: bool = False,
|
||||
@@ -122,7 +122,7 @@ async def patch_grant_obj(
|
||||
# Updated 2023-03-22
|
||||
@router.get('/grant/{grant_id}', response_model=Resp_Body_Base)
|
||||
async def get_grant_obj(
|
||||
grant_id: str = Query(..., min_length=11, max_length=22),
|
||||
grant_id: str = Path(min_length=11, max_length=22),
|
||||
|
||||
inc_event_abstract: bool = False,
|
||||
|
||||
@@ -164,7 +164,7 @@ async def get_grant_obj(
|
||||
# Updated 2023-06-23
|
||||
@router.get('/event/{event_id}/grant/list', response_model=Resp_Body_Base)
|
||||
async def get_event_id_grant_obj_li(
|
||||
event_id: str = Query(..., min_length=11, max_length=22),
|
||||
event_id: str = Path(min_length=11, max_length=22),
|
||||
|
||||
inc_event_abstract: bool = False,
|
||||
|
||||
@@ -218,7 +218,7 @@ async def get_event_id_grant_obj_li(
|
||||
# # Updated 2023-03-22
|
||||
# @router.delete('/grant/{grant_id}', response_model=Resp_Body_Base)
|
||||
# def delete_grant_obj(
|
||||
# grant_id: str = Query(..., min_length=11, max_length=22),
|
||||
# grant_id: str = Path(min_length=11, max_length=22),
|
||||
|
||||
# method: str = None, # None, delete, disable, hide
|
||||
|
||||
|
||||
Reference in New Issue
Block a user