Saving current progress with change from using Query() to Path()
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from fastapi import APIRouter, Body, Depends, Header, HTTPException, Query, Response, status
|
||||
from fastapi import APIRouter, Body, Depends, Header, HTTPException, Path, Query, Response, status
|
||||
from pydantic import BaseModel, EmailStr, Field
|
||||
from typing import Dict, List, Optional, Set, Union
|
||||
|
||||
@@ -246,7 +246,7 @@ async def get_event_obj_event_location_list(
|
||||
# Updated 2022-09-23
|
||||
@router.delete('/event/location/{obj_id}', response_model=Resp_Body_Base)
|
||||
async def delete_event_location_obj(
|
||||
obj_id: str = Query(..., min_length=11, max_length=22),
|
||||
obj_id: str = Path(min_length=11, max_length=22),
|
||||
commons: Common_Route_Params = Depends(common_route_params),
|
||||
):
|
||||
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
|
||||
Reference in New Issue
Block a user