title: How to make an api Get request using @nestjs/axios
body: <p>I want to get weather info for a city from OpenWeatherMap but I get a weird JSON response</p>
  <p><a href="https://i.stack.imgur.com/arHhE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/arHhE.png" alt="enter image description here" /></a></p>
  <p>Response the I got</p>
  <p>{
  &quot;name&quot;: &quot;dallas&quot;,
  &quot;weather&quot;: {
  &quot;source&quot;: {
  &quot;source&quot;: {}
  }
  },
  &quot;_id&quot;: &quot;61c335daeb8c6b030489996b&quot;,
  &quot;__v&quot;: 0
  }</p>
  <p><code>cities.service.ts</code></p>
  <pre><code>@Injectable()
  export class CitiesService {
    constructor(
      @InjectModel('City') private readonly cityModel: Model&lt;City&gt;,
      private readonly httpService: HttpService
    ) {}
  
    async createCity(createCityDto: CreateCityDto) {
      const { name } = createCityDto;
  
      // Get city weather from OpenWeatherMap
      const weather = await this.httpService
        .get(
          `api.openweathermap.org/data/2.5/weather?q=${name}&amp;appid=${process.env.OPEN_WEATHER_API_KEY}`,
        )
        .pipe(
          map((response) =&gt; response.data),
          map((data) =&gt; data),
        );
  
      console.log(weather);
  
      const city = new this.cityModel({
        name,
        weather,
      });
  
      await city.save();
  
      return city;
    }
  }
  </code></pre>