diff --git a/api/main.bal b/api/main.bal index e32e527..64e9323 100644 --- a/api/main.bal +++ b/api/main.bal @@ -5532,6 +5532,14 @@ AND p.organization_id IN ( } } + + isolated resource function get person_by_id(int? id) returns PersonData|error? { + if (id != null) { + return new (null,id); + } else { + return error("Provide non-null value for id."); + } + } }