Saving current progress with change from using Query() to Path()
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import datetime, json, pytz, random, secrets, time
|
||||
import pandas, xlrd # qrcode
|
||||
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
|
||||
|
||||
@@ -25,7 +25,7 @@ router = APIRouter()
|
||||
# Updated 2024-04-12
|
||||
@router.get('/event/{e_impexium_event_id}/import_reg', response_model=Resp_Body_Base)
|
||||
async def event_import_reg(
|
||||
e_impexium_event_id: str = Query(..., min_length=11, max_length=22), # For ISHLT: 42_AM (2022-04); EX22_AM (2022-04); 41V_2 (2021-04)
|
||||
e_impexium_event_id: str = Path(min_length=11, max_length=22), # For ISHLT: 42_AM (2022-04); EX22_AM (2022-04); 41V_2 (2021-04)
|
||||
registered_since: datetime.datetime = None, # datetime.datetime.now() + datetime.timedelta(seconds=120)
|
||||
details: bool = True,
|
||||
inc_individual_profile: bool = True,
|
||||
|
||||
Reference in New Issue
Block a user