00:02 Introduction to HTTP methods GET and POST 02:07 HTTP methods include GET, POST, PUT, DELETE 04:02 Understanding HTTP status codes for request responses 06:00 Creating a method to get a single product by its ID 08:07 Using Spring Web Http methods GET and POST 10:15 Using Spring annotations for dynamic variables and path matching 12:22 Creating methods to fetch and store product data 14:27 Using different HTTP methods for same URL 16:26 Troubleshooting unsupported operation error for POST request. 18:27 Utilizing @RequestBody annotation to receive data from client in Spring web controller 20:16 Understanding GET and POST methods in Spring Web
@@kushwahcreation8882 Enhanced for loop: In 3rd line 'Product' is to mention object type of 'i' in each iteration and 'products' denotes list of products(List).
Thak you for your efforts! I really appreciate it. There are many generous people here on TH-cam, who share their knowledge. To create these series, explaining the steps, showing the mistakes/errors in the process is even more valuable.
Sir, I have one doubt. I learned from you Sir but how did you learn this and what are the resources are you using to get knowledge in new tools. Can you explain it deliberately Sir
I believe it's hard work and that one big book even my sir used to use and that's why he was brilliant like this guy. The complete reference java something edition.
@NoArgsConstructor I had to add this for code to work. In case someone else is also facing "Failed to convert value of type 'null' to required type 'int'; Failed to convert from type [null] to type [int] for value [null]" error
Sir , I am having a small doubt in this Video , In the ProductService class you used pre defined products lists for Get API . In Post call you added another item to that List . I expected that It wont come in Get API since that new item stored only inside the Object scope of Service classs in the POST call. But How that New item came in the Get call ? I thought you used static but you non static global variable only .
Please let me know how to solve this error { "timestamp": "2024-08-05T17:15:16.260+00:00", "status": 405, "error": "Method Not Allowed", "path": "/products/104" }
00:02 Introduction to HTTP methods GET and POST
02:07 HTTP methods include GET, POST, PUT, DELETE
04:02 Understanding HTTP status codes for request responses
06:00 Creating a method to get a single product by its ID
08:07 Using Spring Web Http methods GET and POST
10:15 Using Spring annotations for dynamic variables and path matching
12:22 Creating methods to fetch and store product data
14:27 Using different HTTP methods for same URL
16:26 Troubleshooting unsupported operation error for POST request.
18:27 Utilizing @RequestBody annotation to receive data from client in Spring web controller
20:16 Understanding GET and POST methods in Spring Web
When you educate through mistakes, it's better understood and remembered.
Thank you so much!🙏
public Product getProductById(int id)
{
for(Product i: products)
{
if(i.getId() == id)
{
return i;
}
}
return null;
}
i dont have idea about how i iterate on list of objects , can u please help me!!!
@@kushwahcreation8882 Enhanced for loop:
In 3rd line 'Product' is to mention object type of 'i' in each iteration and 'products' denotes list of products(List).
You explain everything like a story, which is awesome. That’s a unique strength of Navin Reddy.
Thak you for your efforts! I really appreciate it. There are many generous people here on TH-cam, who share their knowledge. To create these series, explaining the steps, showing the mistakes/errors in the process is even more valuable.
this series is going great!!. keep it up and keep posting such knowledgeable videos
Great way of explaining things . Please keep uploading more such videos.
Sir, I have one doubt. I learned from you Sir but how did you learn this and what are the resources are you using to get knowledge in new tools. Can you explain it deliberately Sir
I believe it's hard work and that one big book even my sir used to use and that's why he was brilliant like this guy. The complete reference java something edition.
You are amazing ... waiting more lectures ... thanks sir.
Simplicity at its best.
I like the way how you teach "RequestBody", saving my time from debugging
Learning with errors is a good method, thanks. :)
@NoArgsConstructor I had to add this for code to work. In case someone else is also facing "Failed to convert value of type 'null' to required type 'int'; Failed to convert from type [null] to type [int] for value [null]" error
Thank you sir
Please continue this series
Thank you for uploading, please upload daily
covering the topic is topclass
👍👍
Thanks Naveen garu for the series
waiting for more and more lectures from you
Love your content!
thank you Navin for your detailed explanation
Awesome sir love from vizag
You're a amazing Sir
Need more likes for this very clever Mr. Alien!
13:44 Hibernate also does that right?
Thanks sir for easy explanation 😃😎
Appreciate your every video!
Thanku Sir! u made my learning so simple
Thanks for the lectures and the mistakes are good when learning.
Great series sir
Good series!
I am getting with status 405
Request method POST is not supported
hey, I have a question.
if I get the same product ID, name, and price it duplicates in the server. how to avoid that?
Sir , I am having a small doubt in this Video , In the ProductService class you used pre defined products lists for Get API . In Post call you added another item to that List . I expected that It wont come in Get API since that new item stored only inside the Object scope of Service classs in the POST call. But How that New item came in the Get call ? I thought you used static but you non static global variable only .
really helpful, thanks a lot 🥶🥶
continue the series please
so far so good
Since REST apis are stateless how you are able to manage new entry in the system and get it return backed
Nice content!
Well explained!
CFBR ❤
Thank you sir for your video's ❤
Thank you for the video ☺
Awesome
Navin sir please give the source of get, post, put and delete(upload in the github and share the link in description )
He educates 😤
Good content
Thank You For the Video Sir
Thank you so much
Thank you
thank you sir 🙂
thanks a lot
Cool.
❤❤❤❤❤
StreamAPI link please
nice
Sir pls gave me udemy coupon sir
12:30
🎉
❤
Please let me know how to solve this error
{
"timestamp": "2024-08-05T17:15:16.260+00:00",
"status": 405,
"error": "Method Not Allowed",
"path": "/products/104"
}
try to use chatgpt as well if possible, you will get more clearity
stream api
Sir pls dont upload udemy paid content here
was
for(P :products){
if(P.id == prodid) return P}