How to convert PL/SQL to APIs for SaaS ?