File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from typing import Any
22
33from aas_core3 .types import Identifiable
4- from fastapi import APIRouter , Request
4+ from fastapi import APIRouter , Request , HTTPException
55
66from server .services .aas_service import AasService
77from basyx import ObjectStore
88
99from server .utils .decorator import paginated
1010
11- class AasRouter () :
11+ class AasRouter :
1212 def __init__ (self , global_obj_store : ObjectStore [Identifiable ]):
1313 self .router = APIRouter ()
1414 self .service = AasService (global_obj_store )
@@ -27,8 +27,7 @@ async def create_aas(request: Request) -> Any:
2727
2828 @self .router .get ("/shells/$reference" )
2929 async def get_all_aas_reference () -> Any :
30- # TODO: Inconsistent
31- return {"message" : "Content parameters are not supported yet." }
30+ raise HTTPException (status_code = 501 , detail = "This route is not yet implemented!" )
3231
3332 @self .router .get ("/shells/{aas_identifier}" )
3433 async def get_aas_by_id (aas_identifier : str ) -> Any :
Original file line number Diff line number Diff line change 99from server .utils .decorator import paginated
1010
1111
12- class SubmodelRouter () :
12+ class SubmodelRouter :
1313 def __init__ (self , global_obj_store : ObjectStore [Identifiable ]):
1414 self .router = APIRouter ()
1515 self .obj_store = global_obj_store
Original file line number Diff line number Diff line change 33 "paging_metadata" : {
44 "next_cursor" : null
55 }
6- }
6+ }
Original file line number Diff line number Diff line change 3434 }
3535 ],
3636 "modelType" : " Submodel"
37- }
37+ }
You can’t perform that action at this time.
0 commit comments