MENU

Fun & Interesting

Master Rest API with Spring Boot Step By Step | Content Negotiation in Web API

Selenium Express 4,950 3 months ago
Video Not Working? Fix It Now

In this video, we will master rest api with spring boot in a step by step process. In this basic rest api tutorial we will focus on content negotiation and why it is important in web api. While building any rest api , we are mostly concerned with the kind of data that we will be producing and the kind of data that we will be consuming. for an example if our boss asked us to create an rest webservices which will consume json format data and expose data only with xml format. We should know how to implement this as the client may ask our api data, in different format. In this video we will learn to implement the above with spring boot and postman and explore different spring boot annotations like @Restcontroller, @RequestBody, @GetMapping and also different attributes like produces and consumes. We will learn about different MediaType like XML, JSON, PDF,Plain Text etc. We will do an analysis on Postman Accept and ContentType request header. Timestamp ------------------ 00:00:00 - Content Negotiation in REST API 00:05:28 - Spring Boot Start Project 00:07:47 - Adding Lombok 00:09:05 - Creating a Spring Boot RestController 00:13:10 - Postman Console analysis : Accept & Content Type 00:25:24 - Producing JSON data with Spring Boot API 00:29:13 - Content Negotiation in Action 00:32:26 - Spring Boot XML Support for REST API 00:45:34 - Spring Boot JSON MediaType support 00:47:33 - How to use Maven Exclusion 00:56:50 - One Handler Method and Many MediaType 01:02:44 - Spring Boot Rest API PDF support 01:07:32 - @PostMapping consumes 01:23:57 - @RequestBody 01:32:37 - Producing and Consuming data with @PostMapping #springboot #restapi #springboottutorial #springrest For More free/paid courses visit www.seleniumexpress.com LINKS AND FREE LEARNING RESOURCES ======== Watch my new mock interview series for java developers https://youtu.be/yX2w-Sof95s Watch Spring boot Hot topics https://youtu.be/CUQWZHjuq-w Java Interview / Question and Answer series https://youtu.be/Y1uGGTrBYKw Explain spring Bean Lifecycle https://youtu.be/hUYGGqoXEPc spring core https://www.youtube.com/watch?v=r2Q0Jzl2qMQ&list=PL3NrzZBjk6m-nYX072dSaGfyCJ59Q5TEi spring mvc https://www.youtube.com/watch?v=zCHrZdJODg4&list=PL3NrzZBjk6m-OSeL3DRMD_ISa0u-9c1l1 spring mvc intermediate https://www.youtube.com/watch?v=40YaLHbrwrY&list=PL3NrzZBjk6m_2jw8sC0BkEwSPFHxgQDWr Spring JDBC https://www.youtube.com/watch?v=5j_vh1b9dV8&list=PL3NrzZBjk6m-rYTKze-5Y5RvU8eykal4j spring live project https://www.youtube.com/watch?v=m_b_FwDjAXM&list=PL3NrzZBjk6m-9CVPueDLLermojwtfuW_f SPRING SECURITY COURSE[NEW] https://youtu.be/NMNLozLGT1s For more courses visit https://www.seleniumexpress.com Any time you are getting stuck with issues, Feel free to ask for support. You can send mail to [email protected] you can ping me on my Facebook page https://www.facebook.com/seleniumexpress Make sure to join my private Facebook page (Ask me here) “SeleniumExpress - Support" https://www.facebook.com/groups/187000222361579/ you can ask for support in my website forum https://www.seleniumexpress.com Subscribe to my youtube channel Follow me on Insta https://www.instagram.com/selenium_express/

Comment