Hey thanks a lot I have one question I am new to java I understood the flow but can you please tell me what is the use of lambda operator here and reference type and why you used get(0) index. Thanks you once again.
When I'm hitting rest api in postman it's showing json data but in my application it's passing null values.. i did double check var names in pojo class all are correct
Actually i'm using alpha vantage api, and I wasnot aware about maximum api request limit so before crossing the limit when i was calling api it was working perfectly fine but after over limit even post was showing null value with limit over info. and status was 200ok after 24 hrs I tried again in postman json data was now visible but in my web app it was still showing null result. I tried with different api keys it was working with postman but not in my application there was not error throwing in my app it was running fine just values not showing up I tried invalidate caches>> invalidate restart rebuilt still didnt work idk why new data is not showing up
Hi Abhishek, Thanks for asking the query. DataResponse is the POJO class which was created for storing the Object from JSON data. ObjectMapper is for mapping the JSON data to POJO class. I hope i have clarified your doubt. Regards, CoderCommune
Hey thanks a lot I have one question I am new to java I understood the flow but can you please tell me what is the use of lambda operator here and reference type and why you used get(0) index.
Thanks you once again.
great love it
Can you do for postforentity ?
When I'm hitting rest api in postman it's showing json data but in my application it's passing null values.. i did double check var names in pojo class all are correct
Can you be more specific? Or share the result output?
You can share more details on gram @codercummune
Actually i'm using alpha vantage api, and I wasnot aware about maximum api request limit so before crossing the limit when i was calling api it was working perfectly fine but after over limit even post was showing null value with limit over info. and status was 200ok
after 24 hrs I tried again in postman json data was now visible but in my web app it was still showing null result.
I tried with different api keys it was working with postman but not in my application
there was not error throwing in my app it was running fine just values not showing up
I tried invalidate caches>> invalidate restart
rebuilt still didnt work idk why new data is not showing up
Gazab consuming
all this objectMapper, RestTemplate builder and stream operation should be implemented in Service package instead of Controller .
Agree
👌👌
❤️❤️
Can you explain what DataResponse & ObjectMapper class is doing in ur code?
Hi Abhishek,
Thanks for asking the query.
DataResponse is the POJO class which was created for storing the Object from JSON data.
ObjectMapper is for mapping the JSON data to POJO class.
I hope i have clarified your doubt.
Regards,
CoderCommune
@@codercommune
Ah! Got it.
Good work bro 👍
Thanks for the feedback ❤️
Perfect
Hi, I have tried this approach but I am getting com.fasterxml.jackson.databind.exc.MismatchedInputException .
try to double check pojo class variables are they same as vars in json / xml data of api