Added rest-api commands.