Added extra rest endpoint for get settings api.
Added rest test to also test the get settings' prefix option.