* Add api url func. Signed-off-by: Bo-Yi Wu <[email protected]> * fix: Add unit testing. * fix: conflicts * fix: remove trim * fix: revert test function name.