Тёмный

Java Spring Boot REST API JSON Response Handling Tutorial with Demonstration 

Think Constructive
Подписаться 12 тыс.
Просмотров 32 тыс.
50% 1

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 62   
@ThinkConstructive
@ThinkConstructive 2 года назад
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
@2RAJ21
@2RAJ21 14 дней назад
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.
@DeepakLalchandaniProfile
@DeepakLalchandaniProfile 2 года назад
Hi, where to learn Spring from ? Do you have a youtube video for that
@ThinkConstructive
@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
@DeepakLalchandaniProfile 2 года назад
@@ThinkConstructive thanks for your reply
@DeepakLalchandaniProfile
@DeepakLalchandaniProfile 2 года назад
@@ThinkConstructive which is the best book that you would suggest for Spring Boot. Please reply
@tomermadmon3252
@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
@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.
@narendra8341
@narendra8341 Год назад
could you please give me one session about doing Json Pars in spring boot application and simplifies?
@ThinkConstructive
@ThinkConstructive Год назад
Sure, I will create a new video on this
@oligooliogo961
@oligooliogo961 Год назад
Hi how can we write the responses for each endpoint in a file and put it in folder resources..thanks
@ThinkConstructive
@ThinkConstructive Год назад
Hi, resource folder file needs to be read by response provider and use appropriate response in ResponseHandler.responseBuilder (message.
@mithleshpuri
@mithleshpuri Год назад
Learning lot from your sessions. Thank you
@ThinkConstructive
@ThinkConstructive Год назад
Welcome 😊
@nawwintphyu1873
@nawwintphyu1873 Месяц назад
Thank you so much!
@ThinkConstructive
@ThinkConstructive 27 дней назад
Most Welcome ❤️ Please stay connected and share channel details with others too, thanks 😊
@sebastiansagrario8684
@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
@ThinkConstructive Год назад
Best practice is to return a proper response message back for example - "Request data does not exist" with status code 404
@mohanvs-msv
@mohanvs-msv 2 месяца назад
@@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.. 😊
@yarraravitejaskpbpmlule2867
@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
@ThinkConstructive 2 года назад
Hi, Sure, I will include Spring Security in my plan. Thanks
@rahulbasutkar04
@rahulbasutkar04 3 месяца назад
Thank you mam
@ThinkConstructive
@ThinkConstructive 3 месяца назад
Most welcome 😊 Please share with others too
@naveenkoduru1328
@naveenkoduru1328 2 года назад
👍
@indikakumarasinghe4792
@indikakumarasinghe4792 2 месяца назад
Excellent
@ThinkConstructive
@ThinkConstructive Месяц назад
Thank you so much 😀 Stay connected and please share with others too 😊
@theshivrajofficial8444
@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
@ThinkConstructive Год назад
Welcome 😊 Glad that it helped you. Thanks 😊
@pranaypaul6361
@pranaypaul6361 3 месяца назад
Very simple to the point JSON Response Handling example!
@ThinkConstructive
@ThinkConstructive Месяц назад
Glad you liked it! Stay connected and please share with others too. Thank you 😊
@zuberdiwan8123
@zuberdiwan8123 Год назад
Very Usefull..Thanks For Sharing Mam.....Very Informative Content.
@ThinkConstructive
@ThinkConstructive Год назад
Thank you so much 😊 Please share with others too.
@boxofgames3
@boxofgames3 Год назад
great mam, clear explanation
@ThinkConstructive
@ThinkConstructive Год назад
Thank you so much 🙂
@ThinkConstructive
@ThinkConstructive Год назад
Please share with others too
@RjDBIIPL
@RjDBIIPL Год назад
i learned a lot from you madam ji, tqsm🌹
@ThinkConstructive
@ThinkConstructive Год назад
Thank you so much 😊 Stay connected and please share with others too.
@RjDBIIPL
@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
@giangnguyenthetruong3896
@giangnguyenthetruong3896 Год назад
Using ResponseEntity or using custom responses, which one is better ?
@ThinkConstructive
@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.
@audiv4203
@audiv4203 Год назад
Thanks Mam.. U have helped me save a lot of time in handling this usecase.
@ThinkConstructive
@ThinkConstructive Год назад
Glad it is helpful for you. Please share with others too 😊
@baharmahammad6566
@baharmahammad6566 10 месяцев назад
Awesome tutorial. What about getting back all cloud vendors in the form of an array plus status and message?
@debanathswain81
@debanathswain81 9 месяцев назад
Thank you ma'am for your awesome lecture very well explained
@rajdeepsinghrathore7337
@rajdeepsinghrathore7337 9 месяцев назад
Very very helpful.Thanks
@purnimakumari7735
@purnimakumari7735 10 месяцев назад
Thank you for knowledge sharing
@ThinkConstructive
@ThinkConstructive 10 месяцев назад
Thanks 😊 Stay connected and please share with others too 😊
@purnimakumari7735
@purnimakumari7735 9 месяцев назад
@@ThinkConstructive yes sure
@sayyadaareesh9373
@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
@sayyadaareesh9373 Год назад
Perform change on method signature
@1313durgesh
@1313durgesh Год назад
Great Teaching way
@ThinkConstructive
@ThinkConstructive Год назад
Thanks 😊 Stay connected and please share with others too 😊
@ganeshgani810
@ganeshgani810 Год назад
Thanks a lot 🙌🙌
@ThinkConstructive
@ThinkConstructive Год назад
Welcome😊 Stay connected Please share with others too.
@rhodesjh
@rhodesjh 11 месяцев назад
Thanks for this. How do we get the same kind of Json response for getAllCloudVendorDetails?
@rhodesjh
@rhodesjh 11 месяцев назад
I will get each cloud from the list and send it to the response entity and return ?
@rhodesjh
@rhodesjh 11 месяцев назад
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;
@mostviewedtoks
@mostviewedtoks Год назад
thank you
@ThinkConstructive
@ThinkConstructive Год назад
Welcome 😊
@nightcorerelax2560
@nightcorerelax2560 Год назад
so good
@ThinkConstructive
@ThinkConstructive Год назад
Thanks 😊
Далее
МОЮ ТАЧКУ РАЗБИЛИ...!
39:06
Просмотров 366 тыс.
Лайфак года 😂
00:12
Просмотров 93 тыс.
Microservices using SpringBoot 3.0 | Full Example [NEW]
1:25:38
Spring Boot Tutorial | How To Handle Exceptions
14:11
Просмотров 156 тыс.
Spring Boot Actuator | Java Spring Boot Tutorial
45:13
МОЮ ТАЧКУ РАЗБИЛИ...!
39:06
Просмотров 366 тыс.