Java Spring boot REST API project often demands to have responses in a particular format and hence this session will be extremely useful for java spring boot developers who are particularly developing REST APIs. Kindly watch the complete session to get complete benefit from this. GitHub link for CloudVendorApi code - github.com/thinkconstructive/rest-api-spring-boot-demo/tree/master Happy learning. Cheers, Esha
@pranaypaul6361
3 ай бұрын
Very simple to the point JSON Response Handling example!
@ThinkConstructive
Ай бұрын
Glad you liked it! Stay connected and please share with others too. Thank you 😊
@theshivrajofficial8444
Жыл бұрын
thanks mam for showing the new way to achieve custom response... i have achieved this result by creating lots of DTO classes...but now i got this technic...thanks again for creating awesome content...
@ThinkConstructive
Жыл бұрын
Welcome 😊 Glad that it helped you. Thanks 😊
@mithleshpuri
2 жыл бұрын
Learning lot from your sessions. Thank you
@ThinkConstructive
2 жыл бұрын
Welcome 😊
@zuberdiwan8123
Жыл бұрын
Very Usefull..Thanks For Sharing Mam.....Very Informative Content.
@ThinkConstructive
Жыл бұрын
Thank you so much 😊 Please share with others too.
@tomermadmon3252
2 жыл бұрын
Hi Your explanation is very clear. I have few questions.. Why don't you just create generic object contains T response, String status and String message? In addition, you can use Lombok builder or to implement builder by yourself..
@ThinkConstructive
2 жыл бұрын
Hi, Thanks 😊 There are different ways to do this. I discussed one of them. Lombok and Generics can be another way to do this.
@audiv4203
Жыл бұрын
Thanks Mam.. U have helped me save a lot of time in handling this usecase.
@ThinkConstructive
Жыл бұрын
Glad it is helpful for you. Please share with others too 😊
@2RAJ21
28 күн бұрын
Thank you for how to create custom json response. could you make a video to get and access C# json response in springboot app using java. because C# json response contains meta field, data field and status field.
@debanathswain81
10 ай бұрын
Thank you ma'am for your awesome lecture very well explained
@baharmahammad6566
11 ай бұрын
Awesome tutorial. What about getting back all cloud vendors in the form of an array plus status and message?
@RjDBIIPL
Жыл бұрын
i learned a lot from you madam ji, tqsm🌹
@ThinkConstructive
Жыл бұрын
Thank you so much 😊 Stay connected and please share with others too.
@RjDBIIPL
Жыл бұрын
could you please make a video about oauth2 with okta using springboot asap ,its help me alot for me ,you are my savior@@ThinkConstructive
@purnimakumari7735
10 ай бұрын
Thank you for knowledge sharing
@ThinkConstructive
10 ай бұрын
Thanks 😊 Stay connected and please share with others too 😊
@purnimakumari7735
10 ай бұрын
@@ThinkConstructive yes sure
@1313durgesh
Жыл бұрын
Great Teaching way
@ThinkConstructive
Жыл бұрын
Thanks 😊 Stay connected and please share with others too 😊
@boxofgames3
Жыл бұрын
great mam, clear explanation
@ThinkConstructive
Жыл бұрын
Thank you so much 🙂
@ThinkConstructive
Жыл бұрын
Please share with others too
@sayyadaareesh9373
Жыл бұрын
Hello ma'am I think you also perform change on service package like CloudVendorService and it's implementation class because this method comes from service package. Thank you.
@sayyadaareesh9373
Жыл бұрын
Perform change on method signature
@rhodesjh
Жыл бұрын
Thanks for this. How do we get the same kind of Json response for getAllCloudVendorDetails?
@rhodesjh
Жыл бұрын
I will get each cloud from the list and send it to the response entity and return ?
@rhodesjh
Жыл бұрын
I did this and it worked! public List getAllCloudVendorDetails(){ //return new CloudVendor("C1","Vendor name","Address one","xxxxxxx"); List list = cloudVendorService.getAllCloudVendors(); List newList = new ArrayList(); for (CloudVendor cloudVen : list){ System.out.println(cloudVen + ""); newList.add(ResponseHandler.responseBuilder ("Response Vendor details are given here", HttpStatus.OK,cloudVen)); } return newList;
@DeepakLalchandaniProfile
2 жыл бұрын
Hi, where to learn Spring from ? Do you have a youtube video for that
@ThinkConstructive
2 жыл бұрын
Hi, Currently, I don't have Spring framework video available on my channel. That will surely be available in future here. Meanwhile, you can refer "spring.io/" website and also can read book - "Spring in Action" by Manning publication.
@DeepakLalchandaniProfile
2 жыл бұрын
@@ThinkConstructive thanks for your reply
@DeepakLalchandaniProfile
2 жыл бұрын
@@ThinkConstructive which is the best book that you would suggest for Spring Boot. Please reply
@narendra8341
Жыл бұрын
could you please give me one session about doing Json Pars in spring boot application and simplifies?
@ThinkConstructive
Жыл бұрын
Sure, I will create a new video on this
@yarraravitejaskpbpmlule2867
2 жыл бұрын
Hi can you make session on Spring security For enterprise level application That would be helpful for me and my friends Who are working on the project Thanks in anticipation Yarra Raviteja
@ThinkConstructive
2 жыл бұрын
Hi, Sure, I will include Spring Security in my plan. Thanks
@indikakumarasinghe4792
2 ай бұрын
Excellent
@ThinkConstructive
Ай бұрын
Thank you so much 😀 Stay connected and please share with others too 😊
@rajdeepsinghrathore7337
10 ай бұрын
Very very helpful.Thanks
@nawwintphyu1873
Ай бұрын
Thank you so much!
@ThinkConstructive
Ай бұрын
Most Welcome ❤️ Please stay connected and share channel details with others too, thanks 😊
@sebastiansagrario8684
Жыл бұрын
its ok to return null as a responseObject and a status code 404 when you cant find that object in the database? thanks you!
@ThinkConstructive
Жыл бұрын
Best practice is to return a proper response message back for example - "Request data does not exist" with status code 404
@mohanvs-msv
3 ай бұрын
@@sebastiansagrario8684 Use the following Java annotations on top of the the Response handler class. @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) and @JsonSerialize(include = JsonSerialize.Inclusion.NON_EMPTY) Which will elemenate the Null and Empty values in the output, but make sure that you also use the field validation annotations to don't miss out the mandate fields. This might be helpful for you..! Happy Learning.. 😊
@oligooliogo961
Жыл бұрын
Hi how can we write the responses for each endpoint in a file and put it in folder resources..thanks
@ThinkConstructive
Жыл бұрын
Hi, resource folder file needs to be read by response provider and use appropriate response in ResponseHandler.responseBuilder (message.
@giangnguyenthetruong3896
Жыл бұрын
Using ResponseEntity or using custom responses, which one is better ?
@ThinkConstructive
Жыл бұрын
For providing customise responses as discussed in the session, Custom response handling is better otherwise simple ResponseEntity is sufficient. It depends on the requirement.
@ganeshgani810
Жыл бұрын
Thanks a lot 🙌🙌
@ThinkConstructive
Жыл бұрын
Welcome😊 Stay connected Please share with others too.
Пікірлер: 62