Saving current progress with change from using Query() to Path()
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import datetime, pytz, time
|
||||
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
|
||||
|
||||
@@ -45,7 +45,7 @@ async def post_log_client_viewing_obj(
|
||||
@router.patch('/log/client_viewing/{obj_id}', response_model=Resp_Body_Base)
|
||||
async def patch_log_client_viewing_obj(
|
||||
obj: Log_Client_Viewing_Base,
|
||||
obj_id: str = Query(..., min_length=1, max_length=22),
|
||||
obj_id: str = Path(min_length=11, max_length=22),
|
||||
x_account_id: Optional[str] = Header(..., ),
|
||||
return_obj: Optional[bool] = True,
|
||||
by_alias: Optional[bool] = True,
|
||||
@@ -120,7 +120,7 @@ async def get_account_log_client_viewing_obj_li(
|
||||
|
||||
@router.delete('/log/client_viewing/{log_client_viewing_obj_id}', response_model=Resp_Body_Base)
|
||||
async def delete_log_client_viewing_obj(
|
||||
log_client_viewing_obj_id: str = Query(..., min_length=1, max_length=22),
|
||||
log_client_viewing_obj_id: str = Path(min_length=11, max_length=22),
|
||||
x_account_id: str = Header(...),
|
||||
response: Response = Response,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user