As Salamu Alaikum
I am calling the prayer times by date api from spring boot so I seem to get all the response except that my prayer timing values are all null. any suggestion one what I could be doing wrong?
I checked the name matching and stuff no luck
public static class Timings {
private String Fajr;
private String Sunrise;
private String Dhuhr;
private String Asr;
private String Sunset;
private String Maghrib;
private String Isha;
private String Imsak;
private String Midnight;
private String Firstthird;
private String Lastthird;``
this is the URL : https://api.aladhan.com/v1/timings/04-01-2024?latitude=42.460538&longitude=-83.009455&method=2
here's how I am calling the API:
Mono<PrayerTimesResponse> responseMono = webClient.get()
.uri(uriBuilder -> uriBuilder
.path("/v1/timings/{date}")
.queryParam("latitude", latitude)
.queryParam("longitude", longitude)
.queryParam("method", method)
.build(date))
.retrieve()
.bodyToMono(PrayerTimesResponse.class);
PrayerTimesResponse response = responseMono.block();
but when I call the API from a browser or insomnia there is data. what might I be missing. please help