@@ -631,3 +631,46 @@ def get_reporting_org_datasets(
631631def get_reporting_org_actions (crm : SuiteCRM , org_id : str ) -> list [ReportingOrgAction ]:
632632 # TODO:
633633 return []
634+
635+
636+ @router .get ("/{org_id}/tools" )
637+ def get_reporting_org_tool_list (
638+ org_id : uuid .UUID ,
639+ request : starlette .requests .Request ,
640+ user : auth_models .UserAndCredentials = Security (authz .get_user_authnz , scopes = ["ryd" , "ryd:reporting_org:tool" ]),
641+ ) -> JSONResponse :
642+
643+ raise fastapi .HTTPException (
644+ status_code = fastapi .status .HTTP_501_NOT_IMPLEMENTED ,
645+ detail = "Not yet implemented" ,
646+ )
647+
648+
649+ @router .post ("/{org_id}/tools" )
650+ def authorise_tool_permission_for_reporting_org (
651+ org_id : uuid .UUID ,
652+ request : starlette .requests .Request ,
653+ user : auth_models .UserAndCredentials = Security (
654+ authz .get_user_authnz , scopes = ["ryd" , "ryd:reporting_org:tool:update" ]
655+ ),
656+ ) -> JSONResponse :
657+
658+ raise fastapi .HTTPException (
659+ status_code = fastapi .status .HTTP_501_NOT_IMPLEMENTED ,
660+ detail = "Not yet implemented" ,
661+ )
662+
663+
664+ @router .delete ("/{org_id}/tools/{tool_id}" )
665+ def revoke_tool_permission_for_reporting_org (
666+ org_id : uuid .UUID ,
667+ request : starlette .requests .Request ,
668+ user : auth_models .UserAndCredentials = Security (
669+ authz .get_user_authnz , scopes = ["ryd" , "ryd:reporting_org:tool:update" ]
670+ ),
671+ ) -> JSONResponse :
672+
673+ raise fastapi .HTTPException (
674+ status_code = fastapi .status .HTTP_501_NOT_IMPLEMENTED ,
675+ detail = "Not yet implemented" ,
676+ )
0 commit comments