creating api end points for adhocmodels.