Java REST API with Spring Boot Tutorial | REST API CRUD Implementation
Вставка
- Опубліковано 4 чер 2024
- Let us learn how to build Java REST API with Spring Boot in this tutorial.
Some key Spring Boot annotations which are discussed in the session are - @SpringBootApplication , @RestController , @RequestBody , @RequestMapping , @GetMapping , @PostMapping , @PutMapping , @DeleteMapping .
Default Data exchange format is used is JSON.
In this session we will learn how to create REST APIs using Spring Boot from the beginning. Here we will first create a simple Spring Boot Application using Spring Initializer and after that will write code for to make it work as Spring Boot REST API. Finally, REST API testing with Postman tool will be demonstrated. Here Create, Read, Update and Delete - All 4 REST API CRUD operations are implemented in this session with the help of Spring Boot. This will be a Simple Spring Boot REST API application which will support CRUD operations. All the CRUD operations will be tested with the help of Postman tool.
A complete Spring Boot REST API project for Cloud Vendor Information Service is developed in this course, hence keep your system ready for building all 4 CRUD operations in just one tutorial.
This is a Spring Boot with REST API beginners course, where Spring Boot Application is build from scratch, hence feel free to attend this.
Some Key points for REST API -
REST APIs also called as RESTful APIs
REST = Representational State Transfer
API = Application Programming Interface
REST is a set of architectural constraints, not a protocol or a standard. API developers can implement REST in a variety of ways
A REST API is an application programming interface that follows the constraints of REST architectural style and allows for interaction with RESTful web services
REST APIs work over HTTP
Delivers information using any one of the following formats -
JSON (Most popular) , Text , HTML , XML , Javascript and more
Spring Boot Key points -
Easily create stand-alone, production-grade Spring based Applications
Tomcat, Jetty are embedded
Provides starter dependencies
Automatically configure Spring and third party libraries
Provides production ready features such as health checks, metrics, etc.
No code generation, No XML configuration
Github Repo Link -
github.com/thinkconstructive/...
Spring Boot How To Playlist -
• Spring Boot REST API C...
Playlist for Java sessions -
• Java 8 Features Explan...
Kindly subscribe to the channel for getting regular updates of the new sessions/ courses on Software / Computer Application topics by clicking below link or you can also subscribe by clicking on ‘Subscribe’ button on your screen -
/ @thinkconstructive
About Me 😊
I am Esha Puri, founder of Think Constructive. I have almost 20 years of software industry experience. My main aim is to make software learning extremely simple and approachable for anyone who wants to learn technology. I will provide authentic software learning material at this channel for free.
Follow me on -
- Official Website: thinkconstructive.com/
- Twitter: / tconstructive
- LinkedIn: / eshapuri
Support the channel with your Amazon purchase -
Useful Antivirus - amzn.to/3wfXEDu
Nice Office chair - amzn.to/39WUHPv
Another interesting Office chair - amzn.to/3NljxHp
Good Books to spend your time with -
The Psychology of Money - amzn.to/3laqMpw
Atomic Habits - amzn.to/3yEzGU5
The Courage To Be Disliked - amzn.to/3wheVMz
Disclosure, I use affiliate Amazon links above. Purchasing through these links gives me a small commission to support videos on this channel -- the price to you is the same.
See you in the next video 😊
Thank you for remaining connected with the channel.
Chapters
00:00 Welcome Note
01:06 REST API Introduction
02:32 Spring Boot Introduction
04:46 Spring Boot Key Annotations
05:53 Cloud Vendor API Service Overview
07:42 Create Basic Spring Boot Application using Spring Initializer Demonstration
13:30 GET REST API creation and testing using Browser and Postman (Read API)
22:58 POST REST API creation and testing using Postman (Create API)
27:29 PUT REST API creation and testing using Postman (Update API)
30:51 DELETE REST API creation and testing using Postman (Delete API)
34:38 Summary
35:20 Thank You
#springboot #restapi #java #thinkconstructive #eshapuri
Queries
how to build spring boot application
how to implement rest api using spring boot
how to implement java rest api using spring boot
how to implement crud operations using rest api and spring boot
how to test rest api with postman
how to test crud rest api
how to use spring initializer
how to write first spring boot application
what is spring boot
what is rest api
what is postman
it is refreshing to finally get a tutorial with an instructor who does not come with assumptions. thank you for your valuable content, learnt a lot in a short space of time.
Thank you so much for your kind words. Very Happy to know that it helped you 😊
Please share with others too.
Can You tell me, whether I should watch any other tutorial before this?
Hey there. It was an amazing session for me. I followed you along and able to do everything as you have done. Thanks for uploading it.
This is my first time learning to build APIs using Spring Boot. Thank you for the very clear explanations and easy to follow demo.
Very good tutorial Ma'am. Thanks for knowledge sharing. ❤
Nice video good refresher for me
Really excellent and clearly explained video! I have seen so many spring boot tutorials on REST that simply regurgitate confusing buzzwords without explaining anything, but your video was exceptionally clear and concise.
Thank you so much for the appreciation and encouragement 😊
It really means a lot to me.
Please stay connected and share session & channel details with others too.
I think this is best video on how to get started with REST API with Spring Boot. Thanks for your efforts.
Glad it helped 😊
Please share with other too. Thanks 😊
Nice explanation. Thanks for sharing knowledge.
Your explanation was outstanding! It's surprising to see the number of followers gained from the content you created. As a beginner and first-time project creator, I now have a clear understanding of everything you explained. Thank you
Glad it helped you 😊
Stay connected and please share with others too Thanks 😊
very helpful session mam, showing pure rest API and its functionality without any other complex stuff, very easy to understand how the flow works in REST API using java. thank you for this tutorial.
Thanks Madem. Finally, I understood the CRUD operation with your video. The way of explanation is very well.
Glad it helped you 😊 Thanks a lot ❤️
Please stay connected and share with others too 😊
Very informative for people who are familiar with programming languages and want to receive pure practical information quickly, thanks so much
Thank you so much 😊
Stay connected and please share with others too 😊
That was an awesome video! Thanks a lot!
Good lecture, thanks. Liked that you also introduced and showed usage of postman. Very informative and good to follow
Super easy to understand your teaching. I have tried few tutorial but yours is crystal clear. Thank you so much.
Glad that it was helpful 😊
Please share with other too. Thanks 😊
Absolutely very good tutorials for the freshers and beginners who wants some experience building rest api's using springboot.
Thanks 😊
Stay connected and please share with others too, thanks 😊
Amazing Explanation! Will go through complete playlist💯.
Glad to hear this. Thank you 😊
I am sure you will really love Spring Boot playlist too.
Keep Learning.
Please share channel details with others too 😊
i have watched many videos no one taught me like this , i just started java after stressful support job ....java really astonish me ,with all crud functions now im clear thank you mam long live
Great Video, it have been never been this clear for me , Thank you.
Thank You So Much Madam for detailed explanation, keep going with more and more valuable content like this.
Superb teaching madam. I came with zero knowledge of spring boot but I had done rest api's using .NET C# and I really appreciating you for giving such good content with such easy explanation ❤
Glad it helped you 😊 Thanks a lot ❤️❤️
Please stay connected and share with others too 😊
Excellent video for learning REST API with Spring boot!! Your video saved a lot of time for me. Thank you so much.
Thank you so much 😊 😊
Stay connected and share with others too 😊
It is really amazing, super easy and perfect explanation. Thanks
I LOVE YOU! THANKS FOR THE GREAT TUTORIAL
Thanks 😊 Glad to know that you liked it.
thank you for this, its manageable to follow! :)
GITHUB Link - github.com/thinkconstructive/rest-api-spring-boot-demo/tree/master
In this tutorial all 4 CRUD REST API operations are implemented using Spring Boot for a particular service. First Spring Boot application is implemented from scratch and then evolved to implement REST API. All CRUD operations are also tested using POSTMAN. Kindly watch the full session and try the implementation with the session to get the complete benefit from this course.
Also, please comment here to let me know which next session you want me to upload here.
Enjoy learning Spring Boot and REST API.
Cheers,
Esha
Thanks for the session. Please keep uploading such great learning videos. Postman testing is icing on the cake 😊
@@techlover7803 Sure, I will
please upload more videos on spring boot
Sure, Will upload
Your way of explanation is awesome and beginners also can understand clearly
Thank you so much! You've saved my day! I just loved your clear and kind explanation.
Most welcome 😊 Thanks for your kind words 😊
Stay connected and please share with others too 😊
You deserve an Award maam, Kudos to you
Thank you so much 😊
very good introduction to rest api,so easy to understand THANKS
You are most welcome
Please share with others too. Thanks 😊
Simple , Crisp & Clear
Thank you 😊
Stay connected and please share with others too
I have many questions regarding APIs and spring boot this video cleared all my questions thanks ❤
your explanation are so clear and to the point . Thank you🤩
Very informative, thank you very much :)
To the point nothing less nothing more good for beginners to learn curd operation easily...😊
Awesome, thanks for the easy explanation!
Thank you so much 😊😊
Please stay connected and share with others too.
Thank you mam for creating such useful content.
Thank you..Simple and confident.❤ Very useful Mam.
Let me say you are a teacher by design, excellent explanation here.
Thank you so much 😊
Stay connected and please share with others too.
15:50 create REST API that should serve CRUD operaions
Realy nice explanation
Well explained. Thank you
the best tutorial for Spring that's out there
Thank you so much 😊
Stay connected and please share with others too 😊
Really Nice Video Ma'am. Understood Every bit of it. Thank You.
Glad that it was helpful 😊
Please share with other too. Thanks 😊
Nice tutorial for begineer. I can follow this through, a good starting point to understand Spring Framework deeper. Many thanks maam
Glad it was helpful!
Thank you so much 😊
Stay connected and please share with others too.
thank you so much for this video, it was so helpful
Thank you a lot maa, please continue and do more videos on advanced topics which will help to real time projects.
Sure I will
Thank you mam. Just happy with the tutorial presentation..really helped a lot.
Thanks the algo and recommended this video after searching alot of videos for this topic and wasted alot of time on other. Really your explanation is simply superb mam👌 . Now got the complete clarity. I request you to please upload the springboot complete tutorials which really helpful also continue uploading the advanced topics.
Really very happy to know that you found it useful and it helped 😊 There are more tutorials on Spring Boot available on this channel. Here is a playlist for the same - ua-cam.com/play/PLcs1FElCmEu121gqGwlQt47d0SqNkzSTK.html
Will upload more Spring Boot sessions shortly.
Please share the session and channel details with others too 😊
Thanks a lot
@@ThinkConstructive thankyou and sure I'll do it😊
Very nice and easy way to deliver the knowledge..thank you so much mam❤
Welcome 😊 ❤️
Stay connected and please share with others too. Thanks 😊
Thank you for the detail explanation!
Glad it was helpful!
Stay connected and please share with others too. Thanks 😊
@@ThinkConstructive will do
Wow what an clear Explanation, It is very crystal clear explanation with good visuals. Thank you for your tutorial which taught me very well ...Keep more postings to learn a lot from you and it helps to many learners like me🙂
Really happy to know that the sessions helped you 😊
Please stay connected and share with others too.
Thanks a lot ❤️❤️
Super content and nicely explained 👌👌👌
Thank you so much. Stay connected 😊
Please share with others too.
Thank you for the tutorial ma'am!
Welcome 😊
It is perfect!
Thank you Ma'am
Thanks you so much 😊
Thabk you so much
It was a wonderful session.. I would request to add Junit/Mokito playlist for the existing Codes what you have presented so far madam.
Thanks😊
Sure, Junit/ Mockito session will be uploaded soon!
Amazing mam..... it is the best of the best.
Thank you so much 😊
Stay connected and please share with others too 😊
Simple to Understand 👍
Thank you so much 😊
Stay connected and please share with others too.
wonderful tutorial indeed
Thank you so much 😊
Stay connected and please share with others too.
mam you explain this very well I was searching this kind of video. Thank you
Thank you so much 😊 Really happy that it helped you
Stay connected and please share with others too 😊
i got it, easy, thanks.
Very simple and clear explanation thank you so much mam 👏👏
Thank you so much 😊
Please stay connected and share with others too.
Very well explained !!
Thanks 😊
Please share with others too 😊
finally a perfect video
Just..wow
your teaching is very well. And cloud please do video session on spring security
Thank you so much!
Welcome 😊
Stay connected and please share with others too. Thanks 😊
Thank you Madam I just watched this video, I like the way you explain, keep up the good work. love from Pakistan
Thank you 😊 Stay connected
Please share with others too.
@@ThinkConstructive sure
Great content ma'am keep posting
Thanks 😊 Sure, will continue uploading more content.
Please stay connected and share with others too 😊
perfect Thanks
Thank you very much. That was very helpful. This is my first time with REST API and I understand it , if you can do a tutorial how we can Implement rest API with HTML like a website interface that have API ❤️💕
Glad it helped you ❤️
Sure will plan sessions on this.
Please stay connected and share with others too. Thank you 😊
Very very usefull. Thanks
Glad it helped you 😊
Stay connected and please share with others too. Thanks 😊
Thank you so much I create the Cloud vendor app now I am looking forward for teting.
Great work
Stay connected and please share with others too. Thank you 😊
Excellent
Thanks 😊
Stay connected and please share with others too 😊
that so good for me!!!
Hi mam, i am new to java and springboot just want to understand one thing we have create a model and specified properties and getter setter methods and constructors. But in Controller we are using annotations and some logic but we are not calling setter and getter methods bit confused.
Very helpful vedio mam🙏
Glad it helped you. Thanks you.
Stay connected and share with others too
Thank you mam for explaining clearly🤗
Thank you so much 😊
Stay connected and please share with others too 😊
thanks for the playlist.
Welcome 😊
Stay connected and please share with others too. Thanks 😊
nice
Thank you mam. Really appreciated.
Thanks 😊
Stay connected and please share with others too 😊
Which book do you recommend for spring and spring Boot framework
It might be a dumb question, However we haven't set up any database how did the post request store the data of the vendor c2.
Thanks mam 😊 Explained very well.
Thank you so much 😊
Stay connected and please share with others too 😊
nice mam you are explaining everything in very nice way
Thanks a lot.
Stay connected and share with others too 😊
@@ThinkConstructive mam can you please make a project video for angular spring boot project with basic concepts for begginer
Hi, your explanation and way of Demo, neat and clean, but one doubt.
I Updated as C4, but In Delete, if I give C1, C2, C3... its not giving any error, simply deleting which I created C4.
First of all thanks a lot for this tutorial . I love it. All is working fine but however one thing I am not sure why the 'vendorId' in @GetMapping or @DeleteMapping is not visible in the APIservice when I try to debug the code. it is always null even though I pass it. Please can you clarify
way of explanation 🙌🙌
Thank you 😊
Stay connected and please share with others too 😊
Thank you so much mam :) Stay blessed
Thank you 😊😊
Please stay connected and share with others too.
way of explanation is very good
Thanks 😊
Stay connected and please share with others too 😊
Nice video.. I've a quick question - Could you please suggest some of the good practices and techniques to implement security between two micro services ( i mean to say, if there are a bunch of micro services in your org, what would be best approach to provide security for the inter-micro services communication
Thanks 😊
This is really good article on Microservice security, inter communication, it covers many key points - www.okta.com/resources/whitepaper/8-ways-to-secure-your-microservices-architecture/#7know-your-cloud-and-cluster-security-9
@@ThinkConstructive Thanks for sharing the link
First of all thank you for this wonderful session. This is really helpful to understand the concept of api. I have followed this and created same project but I am facing some issues. Whenever I am trying to create more than 1 vendor with different vendorId using POST from postman the previous vendor details get override. I can see that when I am using GET in postman with different vendorId in URL. The payload or details are same for both different vendors. Also with put it gets update in both vendor details and delete is removing all of the vendors created. Can someone tell me where exactly I am making mistake or this is because we are passing same object body in methods? It will be helpful if you clarify this. Thanks
The same code for CloudVendorAPIService works on Intellij IDE but does not work in Eclipse IDE. Any reason..?? Or do we need to change the code..? What changes we need to do in Eclipse..??
Thanks
Why I am not able write properties in return method with corresponding their value?
Helpful for me.
Glad it helped you
Please stay connected and share with others too. Thank you 😊
Hi ma'am I have followed the same steps. But in this post,put and delete operation, in the postman it's showing i have created,updated and deleted successfully. But when I try to retrieve the data using get, it's not shoing the updated details. Only showing the previous data. Why is it like that?
Thank You Mam.
Most welcome 😊
Stay connected and please share with others too, thanks 😊
In the second request, where I'm looking for C2, only the C1 appears, I've got everything well according to you I guess. Any reason why ?
This tutorial has demonstration with hard coded data, that's the reason you get only for C1. Next tutorial has explanation and demos of CRUD with MySQL databases. Here is the link - ua-cam.com/video/RfHBm5yRxuw/v-deo.html
thanks maam