Fix #2246 (doco): document onRegisterApi
Merge pull request #2348 from PaulL1/2246_doco

Fix #2246 (doco): document onRegisterApi