Saving current progress with change from using Query() to Path()
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import datetime, 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
|
||||
|
||||
@@ -23,7 +23,7 @@ router = APIRouter()
|
||||
# Updated 2021-12-13
|
||||
@router.get('/account/{account_id}/fundraising/list', response_model=Resp_Body_Base)
|
||||
async def get_account_obj_fundraising_list(
|
||||
account_id: str = Query(..., min_length=11, max_length=22),
|
||||
account_id: str = Path(min_length=11, max_length=22),
|
||||
|
||||
hidden: str = 'not_hidden', # hidden, not_hidden, all
|
||||
priority: str = 'all', # priority, not_priority, all
|
||||
|
||||
Reference in New Issue
Block a user