Hardcoding parameters into HTTP requests is a valid approach to making simple calls to an API resource, but often we compose requests based on the state of our application. One of the nice things about a large web application framework, such as Angular, is that it has tools such as URLSearchParams that make querying APIs with configurable parameters very easy to wire into our application's logic.