(TK-10) Add schema to get-registered-endpoints

Add schema with which to validate the return value of
get-registered-endpoints and its parameters.