Configuring the API gateway