changed request param from url to endpoint