Added rest endpoint