diff --git a/pkgs/clan-cli/clan_cli/webui/routers/endpoints.py b/pkgs/clan-cli/clan_cli/webui/routers/endpoints.py index 8ce5e27..1b92978 100644 --- a/pkgs/clan-cli/clan_cli/webui/routers/endpoints.py +++ b/pkgs/clan-cli/clan_cli/webui/routers/endpoints.py @@ -94,18 +94,6 @@ def create_entity( return sql_crud.create_entity(db, entity) -@router.get( - "/api/v1/entity_by_name_or_did", - response_model=Optional[Entity], - tags=[Tags.entities], -) -def get_entity_by_name_or_did( - entity_name_or_did: str = "C1", db: Session = Depends(sql_db.get_db) -) -> Optional[sql_models.Entity]: - entity = sql_crud.get_entity_by_name_or_did(db, name=entity_name_or_did) - return entity - - @router.get( "/api/v1/entity_by_roles", response_model=List[Entity], tags=[Tags.entities] ) @@ -129,7 +117,7 @@ def get_entity_by_did( entity_did: str = "did:sov:test:120", db: Session = Depends(sql_db.get_db), ) -> Optional[sql_models.Entity]: - entity = sql_crud.get_entity_by_did(db, did=entity_did) + entity = sql_crud.get_entity_by_name_or_did(db, name=entity_did) return entity