make api base url for facetview configurable