fix #1717(api): move api register into api for core
Merge pull request #1731 from PaulL1/1717_api_register_timing

fix #1717(api): move api register into api for core