Skip to content

Commit 9009b44

Browse files
committed
Resolve PR comments regarding unnecessary parantheses and empty lines at EOF
1 parent 9887248 commit 9009b44

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

api/server/routes/aas.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
from typing import Any
22

33
from aas_core3.types import Identifiable
4-
from fastapi import APIRouter, Request
4+
from fastapi import APIRouter, Request, HTTPException
55

66
from server.services.aas_service import AasService
77
from basyx import ObjectStore
88

99
from 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:

api/server/routes/submodel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from 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

api/test/examples/empty_paged_result.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"paging_metadata": {
44
"next_cursor": null
55
}
6-
}
6+
}

api/test/examples/submodel/submodel2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434
}
3535
],
3636
"modelType": "Submodel"
37-
}
37+
}

0 commit comments

Comments
 (0)