Saving current progress with change from using Query() to Path()
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import datetime
|
||||
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
|
||||
|
||||
@@ -22,7 +22,7 @@ router = APIRouter()
|
||||
@router.get('/{obj_type}/{obj_id}/order/line/list', response_model=Resp_Body_Base)
|
||||
async def get_obj_id_order_line_list(
|
||||
obj_type: str = Query(..., min_length=4, max_length=25), # Expects account or order or person
|
||||
obj_id: str = Query(..., min_length=11, max_length=22),
|
||||
obj_id: str = Path(min_length=11, max_length=22),
|
||||
from_datetime: datetime.datetime = None,
|
||||
to_datetime: datetime.datetime = None,
|
||||
prod_type: str = 'all', # all, cont_edu_cert, event, fundraising, membership, etc
|
||||
|
||||
Reference in New Issue
Block a user