Work on API CRUD, person, membership
This commit is contained in:
@@ -155,9 +155,9 @@ router = APIRouter()
|
||||
@router.get('/{obj_type_l1}/{obj_type_l2}/list')
|
||||
@router.get('/{obj_type_l1}/{obj_type_l2}/{obj_type_l3}/list')
|
||||
async def get_obj_li(
|
||||
obj_type_l1: str=None,
|
||||
obj_type_l2: str=None,
|
||||
obj_type_l3: str=None,
|
||||
obj_type_l1: str = Query(..., min_length=2, max_length=50),
|
||||
obj_type_l2: str = Query(None, min_length=2, max_length=50),
|
||||
obj_type_l3: str = Query(None, min_length=2, max_length=50),
|
||||
#obj_id: str=None,
|
||||
for_obj_type: Optional[str] = Query(None, max_length=50),
|
||||
for_obj_id: Optional[str] = Query(None, max_length=22),
|
||||
@@ -165,7 +165,7 @@ async def get_obj_li(
|
||||
by_alias: Optional[bool] = True,
|
||||
include: Optional[list] = [],
|
||||
exclude: Optional[list] = [],
|
||||
exclude_unset: Optional[bool] = True,
|
||||
exclude_unset: Optional[bool] = False,
|
||||
exclude_none: Optional[bool] = True,
|
||||
response: Response = Response,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user