[rest] Adds support for callbacks without arguments.
Minor changes.