Java REST API with Spring Boot Tutorial | REST API CRUD Implementation
HTML-код
- Опубликовано: 7 июн 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?
Very good tutorial Ma'am. Thanks for knowledge sharing. ❤
This is my first time learning to build APIs using Spring Boot. Thank you for the very clear explanations and easy to follow demo.
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.
Nice explanation. Thanks for sharing knowledge.
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.
Good lecture, thanks. Liked that you also introduced and showed usage of postman. Very informative and good to follow
Thank You So Much Madam for detailed explanation, keep going with more and more valuable content like this.
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 😊
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 😊
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.
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 😊
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 😊
That was an awesome video! Thanks a lot!
Great Video, it have been never been this clear for me , Thank you.
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 😊
It is really amazing, super easy and perfect explanation. 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 😊
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 😊
Realy nice explanation
Thank you mam for creating such useful content.
To the point nothing less nothing more good for beginners to learn curd operation easily...😊
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 😊
Thank you..Simple and confident.❤ Very useful Mam.
thank you for this, its manageable to follow! :)
Well explained. Thank you
I LOVE YOU! THANKS FOR THE GREAT TUTORIAL
Thanks 😊 Glad to know that you liked it.
Very informative, thank you very much :)
your explanation are so clear and to the point . Thank you🤩
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
very good introduction to rest api,so easy to understand THANKS
You are most welcome
Please share with others too. Thanks 😊
Thank you mam. Just happy with the tutorial presentation..really helped a lot.
I have many questions regarding APIs and spring boot this video cleared all my questions thanks ❤
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
Awesome, thanks for the easy explanation!
Thank you so much 😊😊
Please stay connected and share with others too.
thank you so much for this video, it was so helpful
Really Nice Video Ma'am. Understood Every bit of it. Thank You.
Glad that it was helpful 😊
Please share with other too. Thanks 😊
Super content and nicely explained 👌👌👌
Thank you so much. Stay connected 😊
Please share with others too.
your teaching is very well. And cloud please do video session on spring security
It is perfect!
Thank you Ma'am
Thanks you so much 😊
Simple , Crisp & Clear
Thank you 😊
Stay connected and please share with others too
Let me say you are a teacher by design, excellent explanation here.
Thank you so much 😊
Stay connected and please share with others too.
Thank you for the tutorial ma'am!
Welcome 😊
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.
the best tutorial for Spring that's out there
Thank you so much 😊
Stay connected and please share with others too 😊
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 😊
wonderful tutorial indeed
Thank you so much 😊
Stay connected and please share with others too.
i got it, easy, thanks.
Very nice and easy way to deliver the knowledge..thank you so much mam❤
Welcome 😊 ❤️
Stay connected and please share with others too. Thanks 😊
Simple to Understand 👍
Thank you so much 😊
Stay connected and please share with others too.
Amazing mam..... it is the best of the best.
Thank you so much 😊
Stay connected and please share with others too 😊
Great content ma'am keep posting
Thanks 😊 Sure, will continue uploading more content.
Please stay connected and share with others too 😊
perfect Thanks
Thabk you so much
Thank you a lot maa, please continue and do more videos on advanced topics which will help to real time projects.
Sure I will
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 ❤️❤️
Thank you for the detail explanation!
Glad it was helpful!
Stay connected and please share with others too. Thanks 😊
@@ThinkConstructive will do
Very well explained !!
Thanks 😊
Please share with others too 😊
Very very usefull. Thanks
Glad it helped you 😊
Stay connected and please share with others too. Thanks 😊
Thank you so much!
Welcome 😊
Stay connected and please share with others too. Thanks 😊
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 - ruclips.net/p/PLcs1FElCmEu121gqGwlQt47d0SqNkzSTK
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😊
finally a perfect video
You deserve an Award maam, Kudos to you
Thank you so much 😊
Just..wow
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 😊
Very simple and clear explanation thank you so much mam 👏👏
Thank you so much 😊
Please stay connected and share with others too.
Very helpful vedio mam🙏
Glad it helped you. Thanks you.
Stay connected and share with others too
Thank you mam. Really appreciated.
Thanks 😊
Stay connected and please share with others too 😊
thanks for the playlist.
Welcome 😊
Stay connected and please share with others too. Thanks 😊
that so good for me!!!
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 😊
Thank you mam for explaining clearly🤗
Thank you so much 😊
Stay connected and please share with others too 😊
Excellent
Thanks 😊
Stay connected and please share with others too 😊
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!
Thanks mam 😊 Explained very well.
Thank you so much 😊
Stay connected and please share with others too 😊
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
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.
nice
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 😊
way of explanation is very good
Thanks 😊
Stay connected and please share with others too 😊
thanks maam
Thank You Mam.
Most welcome 😊
Stay connected and please share with others too, thanks 😊
Helpful for me.
Glad it helped you
Please stay connected and share with others too. Thank you 😊
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
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 😊
Please make a video on junit test cases with groovi
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.
Which book do you recommend for spring and spring Boot framework
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.
15:50 create REST API that should serve CRUD operaions
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
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.
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
I have been following Spring since 2.5 version when World Press book were only available. What is your coverage for Spring REST which is enough to take microservices. Kindly provide complete syllabus.
Please please Please make videos on microservices?
Sure, will plan and release Microservices tutorial.
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
very Good Tutorials, is it possible to How to Create a Full-Stack App of Products details with added Byte Image , using Java Springboot Gradle and MYSQL, pOSTMAN DATABASE