Skip to content

Commit

Permalink
Merge pull request #9 from rwth-iat/http_api/remove_aas_submount
Browse files Browse the repository at this point in the history
adapter.http: remove `/aas` submount from AAS repository
  • Loading branch information
jkhsjdhjs authored Mar 6, 2024
2 parents c666488 + 55b8f1c commit b9ba39a
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions basyx/aas/adapter/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,17 +421,13 @@ def __init__(self, object_store: model.AbstractObjectStore):
Rule("/", methods=["GET"], endpoint=self.get_aas),
Rule("/", methods=["PUT"], endpoint=self.put_aas),
Rule("/", methods=["DELETE"], endpoint=self.delete_aas),
Submount("/aas", [
Rule("/", methods=["GET"], endpoint=self.get_aas),
Rule("/", methods=["PUT"], endpoint=self.put_aas),
Rule("/asset-information", methods=["GET"], endpoint=self.get_aas_asset_information),
Rule("/asset-information", methods=["PUT"], endpoint=self.put_aas_asset_information),
Submount("/submodels", [
Rule("/", methods=["GET"], endpoint=self.get_aas_submodel_refs),
Rule("/", methods=["POST"], endpoint=self.post_aas_submodel_refs),
Rule("/<base64url_json(t=ModelReference):submodel_ref>/", methods=["DELETE"],
endpoint=self.delete_aas_submodel_refs_specific)
])
Rule("/asset-information", methods=["GET"], endpoint=self.get_aas_asset_information),
Rule("/asset-information", methods=["PUT"], endpoint=self.put_aas_asset_information),
Submount("/submodels", [
Rule("/", methods=["GET"], endpoint=self.get_aas_submodel_refs),
Rule("/", methods=["POST"], endpoint=self.post_aas_submodel_refs),
Rule("/<base64url_json(t=ModelReference):submodel_ref>/", methods=["DELETE"],
endpoint=self.delete_aas_submodel_refs_specific)
])
])
]),
Expand Down

0 comments on commit b9ba39a

Please sign in to comment.