correct call of defaul rest api for controllers with models