builds RPC objects by consuming swagger json