Rest API | Web Service Tutorial

Sdílet
Vložit
  • čas přidán 11. 07. 2024
  • Check out our courses:
    Spring and Microservices Weekend Live Batch : bit.ly/spring-live-weekend
    Coupon: TELUSKO10 (10% Discount)
    Master Java Spring Development : bit.ly/java-spring-cloud
    Udemy Courses:
    Java:- bit.ly/JavaUdemyTelusko
    Spring:- bit.ly/SpringUdemyTelusko
    Java For Programmers:- bit.ly/javaProgrammers
    For More Queries WhatsApp or Call on : +919008963671
    website : courses.telusko.com/
    Instagram : / navinreddyofficial
    Linkedin : / navinreddy20
    TELUSKO Android App : bit.ly/TeluskoApp
    RESTFUL Web Service in Java using Jersey and Spring
    Intro - 00:00
    1. What is REST API? | Web Service - 00:05
    2. Restful Web Services | Introduction - 11:12
    3. Creating a Jersey Project in Eclipse - 15:29
    4. Running our First Rest Jersey Application - 23:59
    5. How to create a Resource Class - 32:30
    6. List as Resource - 43:02
    7. Mock Repository - 46:29
    8. Creating a Resource - 56:27
    9. How to install Postman - 01:02:25
    10. Send a Post Request - 01:07:04
    11. PathParam - 01:11:41
    12. Working with JSON - 01:19:35
    13. Mysql Repository part 1 - 01:24:56
    14. Mysql Repository part 2 - 01:33:35
    15. Consumes JSON and XML - 01:42:06
    16. Update Resource using PUT method - 01:47:45
    17. Delete Resource - 01:58:04
    18. RESTful Web Services | Recap - 02:03:46
    19. Spring Rest | Spring Boot Example - 02:11:19
    20. Spring JPA | REST - 02:23:38
    #rest #api #webservice
    Spring Full Course : courses.telusko.com/learn/Spr...
    Java:- bit.ly/JavaUdemyTelusko
    Spring:- bit.ly/SpringUdemyTelusko
    More Learning :
    Java :- bit.ly/3x6rr0N
    Python :- bit.ly/3GRc7JX
    Django :- bit.ly/3MmoJK6
    JavaScript :- bit.ly/3tiAlHo
    Node JS :- bit.ly/3GT4liq
    Rest Api :-bit.ly/3MjhZwt
    Servlet :- bit.ly/3Q7eA7k
    Spring Framework :- bit.ly/3xi7buh
    Design Patterns in Java :- bit.ly/3MocXiq
    Docker :- bit.ly/3xjWzLA
    Blockchain Tutorial :- bit.ly/3NSbOkc
    Corda Tutorial:- bit.ly/3thbUKa
    Hyperledger Fabric :- bit.ly/38RZCRB
    NoSQL Tutorial :- bit.ly/3aJpRuc
    Mysql Tutorial :- bit.ly/3thpr4L
    Data Structures using Java :- bit.ly/3MuJa7S
    Git Tutorial :- bit.ly/3NXyCPu
    Donation:
    PayPal Id : navinreddy20
    www.telusko.com
  • Věda a technologie

Komentáře • 470

  • @manirajsivasubbu4623
    @manirajsivasubbu4623 Před 4 lety +56

    The way you teaching is awesome sir... I learnt python & Servlet & JSP from you and I have started REST API. you are explain everything very clearly. You are a great teacher ever I seen. Thank you so much sir✨

  • @sureshprajapati2797
    @sureshprajapati2797 Před 5 lety +233

    I was daily watch your video and performers base on your video now today I have a job as a android developer .thank you very much naveen sir

    • @scanadith
      @scanadith Před 4 lety +5

      bro which company hired u? Do they have an interview

    • @sanathrayala2745
      @sanathrayala2745 Před 4 lety +7

      @@scanadith lol :D

    • @nbits7433
      @nbits7433 Před 4 lety +5

      what ever he got a job.

    • @scanadith
      @scanadith Před 4 lety +1

      @sake kirikue r/wooosh , understand sarcasm bro

    • @adityaaditya7286
      @adityaaditya7286 Před 4 lety +17

      @@scanadith kindly , stop using reddit terms on the youtube to act smart which you are not.

  • @leoking938
    @leoking938 Před 4 lety +5

    This is the best spring tutorial I have seen, and I am half way through. Thanks for the video.

  • @shrao11
    @shrao11 Před 2 lety +1

    Thanks a lot for the video. I happened to found this on CZcams search and intially planned to watch it only for few minutes but later I couldn't stop myself from watching it completely.

  • @raghavgupta3168
    @raghavgupta3168 Před 5 lety +42

    Intelligent People,
    then
    Extra Intelligent People,
    and then comes
    People with copious amount of Knowledge like "Navin Sir".
    I am ecstatically grateful to you sir.🙏

  • @srividhyaful
    @srividhyaful Před 4 lety +28

    I was scouring online for a very resourceful tutorial on Rest. I thank my good time that let me land this gem of a coaching on webservices. The way the trainer expresses and articulates concepts is truly appreciable. Anyone can get the hang of an API by being his student!
    Thanks 😊

  • @kalpanabejawada2451
    @kalpanabejawada2451 Před 4 lety +50

    If given an option, I would like to give 15 likes for this amazing tutorial. Always grateful to you sir.

    • @SugamMaheshwari
      @SugamMaheshwari Před 3 lety +7

      You can alway create 25 accounts and do so mate 😸

  • @maneaniket4200
    @maneaniket4200 Před 2 lety

    I was searching for your old video and BOMB you have integrated all in one thats really great !!!

  • @josepatino8964
    @josepatino8964 Před 4 lety +3

    Incredible video, you teach everything we need to know and a little bit more! Keep on the good work!

  • @mrunalinidhaipule9734
    @mrunalinidhaipule9734 Před 3 lety +5

    I really appreciate the hard work you did! Great Job! And Thanks for making us understand very clearly.

  • @yogeshwarit4020
    @yogeshwarit4020 Před 4 lety

    You are such a great teacher who make us understand the concept without any complexity. Thank for this worth video

  • @QaAutomationAlchemist
    @QaAutomationAlchemist Před 4 lety +10

    It is really awesome and every single second is informative...
    Thanks a lot.

  • @fiorini_mochachino
    @fiorini_mochachino Před rokem

    Probably the best tutorial on CZcams on Rest Api in Java EE

  • @alakendusar6321
    @alakendusar6321 Před 4 lety +12

    It was Great Learning on this topic. I follow ur all leanings. Thanks a lot!!

  • @balachandarthangavel9896

    Didn't even feel like a lecture or boring... you are the best teacher in youtube for technology

  • @ckudalkar
    @ckudalkar Před 4 lety +1

    This is the first time i understood why it is called as REST . No books told it so clearly as you. They just blindly write...Representational State Transfer. Now I understand from your lecture that it is a representation of the state of the object in either Json or XML. Thanks to you. God bless you.

  • @sameerasheik311
    @sameerasheik311 Před 3 lety +2

    Thank you for this video, i have never seen any tutorial with such a clear explanation.

  • @kevklash
    @kevklash Před 5 lety +3

    Incredible video, keep up the great work. Thanks for sharing.

  • @a.s.h.o.k
    @a.s.h.o.k Před rokem +5

    I ❤️ ur way of explanation sir. For example, first you'll tell/show the error parts🙅‍♂️ and again expressing that you can't do like this, it make a sense✅. It makes us grasp things in an efficient way.
    👏👏👏

  • @madhurisharma1203
    @madhurisharma1203 Před 3 lety

    Sir,u provide proper explaination for everything,the way you explain also keeps me interview ready..thankyou

  • @rohantharakan6908
    @rohantharakan6908 Před 4 lety +2

    Fantastic tutorial. Love your work! Keep Going!

  • @sterratran9133
    @sterratran9133 Před 3 lety +4

    You are very amazing sir, i always love your programming lesson. I wish you for the best and thank you.

  • @vinhleduy
    @vinhleduy Před 2 lety +1

    I have non engineering background, just let you know that, your tutorial was amazing, I watched many REST API lectures, this was the best for me, thank you!

  • @gowthamannarayanan9521
    @gowthamannarayanan9521 Před 4 lety +6

    First of all very good tutorial. Highly appreciated Naveen. Have taken notes till point 17 which may be helpful to recall. Correct me if anything wrong @TELUSKO
    REST
    Rest can accept and produce global formats such as json,xml.
    It is nothing but respresentation of state of the object.
    We can cache the service if we are consuming it frequently.
    There are 4 types of request which will use usually that we can map into CRUD operations
    GET-->To retrieve the values.
    Note: If you dont mention any @Path in method level then when u frame and hit URL with resource alone then it will be called.
    POST-->Used to create\insert operations
    PUT-->Update
    Delete-->Remove
    There are several ways of implementation of REST as it is a concept. Here we have considered JERSEY.
    Creating Maven project which will import and create jersey dependencies in eclipse EE ide.
    Creating Resource.
    Will have to create class.
    Above class will have to mention @Path("employees")
    URL Eg: HTTP://host:port/applname/webapi/employees
    GET:
    Sample to get all employees
    Below shd be in method header
    @GET
    @Produces(MediaType.APPLICATION_XML)
    public List getEmployee(){
    ........
    return new ArrayList();
    }
    Note: In Employee object class we shd mention @XmlRootElement so that it acts XML return type for the service.
    URL Eg: HTTP://host:port/applname/webapi/employees
    If we enter above URL and press enter from browser, will get output in xml format.
    To produce in json format then will have mention MediaType.APPLICATION_JSON and you can add many types by separated with commas
    But for JSOn support will have to add jersey-media moxy tag in pom.xml.
    If we want to pass URL param so that will get particular\single object
    URL Eg: HTTP://host:port/applname/webapi/employee/101
    @GET
    @Path("employee/101")
    @Produces(MediaType.APPLICATION_JSON)
    public Employee getEmployee(){// we cannot pass 101 value to the method. Simply we can say it is hardcoded.
    ...
    }
    So, will have to rewrite the method logic. URL access will be same.
    HTTP://host:port/applname/webapi/employee/101
    HTTP://host:port/applname/webapi/employee/102
    @GET
    @Path("employee/{id}")
    @Produces(MediaType.APPLICATION_JSON)
    public Employee getEmployee(@PathParam("id") int id){// Id act as a place holder
    ...
    return obj.get(id);
    }
    POST:
    URL Ref: HTTP://host:port/applname/webapi/employees/employee/ pass values with body as no path param mentioned
    @POST
    @Path("employee")
    public Employee createEmployee(Employee emp){//Insert new record
    ...
    return emp;
    }
    PUT:
    URL Ref: HTTP://host:port/applname/webapi/employees/employee/101 pass values with param, so that it will be updated.
    @POST
    @Path("employee/{id}")
    public Employee updateEmployee(Employee emp){//Update
    ...
    return emp;
    }
    Notes: GET(Single record),DELETE and PUT looks same w.r.t URL. But can be differentiated using the type of request when client submits it.
    DELETE:
    URL Ref: HTTP://host:port/applname/webapi/employees/employee/101 pass values with param, so that it will be Deleted.
    @POST
    @Path("employee/{id}")
    public Employee deleteEmployee(Employee emp){//Delete
    ...
    return emp;
    }
    Notes: GET(Single record),DELETE and PUT looks same w.r.t URL. But can be differentiated using the type of request when client submits it.
    As per REST and coding standards will have to map the CRUD operations with correct HTTP request.
    However if you dont map also, according to the internal implementation it will work but still it is not recomended.

  • @naveendesilva519
    @naveendesilva519 Před 2 lety

    Tutorials are amazing. I just wanted to get a quick revision and was really effective.

  • @masum.v
    @masum.v Před 3 lety

    Your tutorial are getting smarter day by day, like you!! Thank you for your hard work and nice useful video.

  • @p.rajesh942
    @p.rajesh942 Před 5 lety +1

    Thanks alot Naveen sir for all ths series u r launching 🙏🙏

  • @peterfernandes9011
    @peterfernandes9011 Před 4 lety +2

    Thanks for the tutorial. Its really great that u explain every piece of code!

  • @Santhosh-pu8ef
    @Santhosh-pu8ef Před 5 lety

    thank you for making 2-3 hour videos sir its very usefulll no distractions

  • @ravinivangune
    @ravinivangune Před 5 lety +1

    You are simple the awesome...😍 Its a really helpfull having all topics in single video.. 😍And your explanation makes understanding concepts very easy... 👌💻

  • @prachikakade4056
    @prachikakade4056 Před 5 lety +24

    Sir ,your trial and error method is really good. I have seen many other videos where educator simply says the correct method to use and I never understood why only this method or this way it should be done . But when you say let's see whether it will work or not and this is the error for that this is the solution it help me alot in better understanding .thank you .

  • @javaguru5689
    @javaguru5689 Před 4 lety +1

    REST webservices explaination , this is best video to learn REST API in Java in whole youtube . Good work .

  • @krishnaforu3482
    @krishnaforu3482 Před 2 lety +3

    Thank you so much for the amazing teachings sir..Felt very happy , when I searched for Rest Jersey and found ur video in the search list😍😍😘😘💕💕💖

  • @ganlortrix2173
    @ganlortrix2173 Před rokem

    Thank you for the excellent tutorial on REST API technology. I was searching for a tutorial to understand the same. I learned a lot from your presentation and I appreciate your clear and engaging style of teaching. You made the topic easy to understand and fun to practice. I especially liked how you demonstrated the use of different HTTP methods and how they affect the resources. Thanks for your energy and efforts that you put in these videos every time. I would highly recommend your tutorial to anyone who wants to learn more about REST APIs

  • @savitakrishnareddy9086

    Thank you so much. your teaching is very clear and simple and covers everything. thanks a lot.

  • @maheshgaliboina6721
    @maheshgaliboina6721 Před 5 lety

    Thanks Navin, I learned a lot from this video.

  • @divyamalhotra3574
    @divyamalhotra3574 Před 4 lety +2

    So grateful to u for these vdos. I bacame confident on java related stuff after watching ur vdos..Thanks a ton👍🏻👍🏻

  • @korove2
    @korove2 Před 3 lety +1

    Thank you very much! Your videos are more than helpful!

  • @deepanshu2761
    @deepanshu2761 Před 4 lety +1

    sir this was one of an awsome tutorial i have seen till now ...thankyou sir very much ....

  • @java4all427
    @java4all427 Před 5 lety +12

    This is seriously good idea to include all your previous videos in a single video... appreciate your work.

  • @OpenOx999
    @OpenOx999 Před 4 lety +1

    It's really an amazing video !! Navin Reddy sir you are superb!! Keep going

  • @mylinhtran3591
    @mylinhtran3591 Před 3 lety +1

    I haven't finished the video yet because it's quite a long one, but I like what you have shown so far. I will finish this tutorial soon. Just want to put a comment here before it slips my mind. Great explaination and thanks for the tutorial!!

  • @shrutijain7734
    @shrutijain7734 Před 2 lety

    Your videos deserve LikeX10 ! You make aliens life easy at Earth!

  • @manishbolbanda9872
    @manishbolbanda9872 Před 4 lety +1

    You make everything so simple

  • @amitbm7497
    @amitbm7497 Před 2 lety +1

    You are a wonderful teacher. Thank you!!

  • @lifelongtennis712
    @lifelongtennis712 Před 4 lety

    Navin,
    Thank you so much for the video.

  • @factologist875
    @factologist875 Před 3 lety

    Thank you Naveen. You explained concepts very clearly and your videos are always helpful .

  • @sannge2631
    @sannge2631 Před 4 lety +2

    best self-learning video I have ever watched. Thanks a lot.

  • @PRABHATKUMAR-hs3uw
    @PRABHATKUMAR-hs3uw Před 4 lety

    best video on youtube today i found ..this is damm good . #MILLION DOLLARS VIDEO #THANK YOU SIR.

  • @kevinbenavides92
    @kevinbenavides92 Před 3 lety +1

    Kick ass explanation of REST thank you. 🖖🏼

  • @arunvishwakarma2779
    @arunvishwakarma2779 Před 3 lety +1

    I didn't even do a single line of code to practice this :D but you taught it so well that I feel that I can make organization level application :D As always thanks for great content

  • @jesuspereiraoficial
    @jesuspereiraoficial Před 3 lety

    Great video tutorial!!! Thanks so much!

  • @pranatoshsatpati
    @pranatoshsatpati Před 5 lety +1

    Thank you for the tutorial sir
    Looks like sensei likes simple thanks over complicated praising

  • @ducchibui
    @ducchibui Před 4 lety

    thanks so much Sir! I have learnt a lot from your videos.

  • @avi9032
    @avi9032 Před 3 lety

    Thank you sir ! You are an awesome teacher !

  • @jindagi_ka_safar
    @jindagi_ka_safar Před 5 lety

    nice nice ......great video ....best API explanation ...very helpful.........big thanks

  • @rpstudio9298
    @rpstudio9298 Před 3 lety

    Crystal clear explanation .. kuddos to you Navin ...

  • @RaviYaramati
    @RaviYaramati Před 5 lety

    Excellent video.. thank u so much Navin...

  • @princeteddy9973
    @princeteddy9973 Před rokem

    beautiful teaching
    i really love your teachings

  • @shaikhnafeesa6835
    @shaikhnafeesa6835 Před 4 lety

    Very well Explained Thank you so much sir.

  • @glamour7538
    @glamour7538 Před 4 lety

    awesome video, can't thank you enough .

  • @thatisai12
    @thatisai12 Před 4 lety

    Sir! your teaching very good. Anyone can easily understand!

  • @bhanuteja3910
    @bhanuteja3910 Před 4 lety +1

    Good work keep it up. You are changing many people's life for good..

  • @sitansuchoudhury538
    @sitansuchoudhury538 Před 3 lety

    Thank u sir.i love your lecture and it is very useful for me.

  • @deepagajendra5703
    @deepagajendra5703 Před 4 lety +1

    Really helpful...plz make 3 hrs video..its lyk revision/learning of whole subject in less tym..😊

  • @ukmgaming0
    @ukmgaming0 Před 5 lety +1

    Sir you helped me a lot to learn java

  • @saurabhkumarsah6902
    @saurabhkumarsah6902 Před rokem

    Thanks telusko implemented rest using jersey with my sql 8 version having beginner in java as coming from .net experience

  • @itachi-senpaii
    @itachi-senpaii Před 2 lety

    thanks a million times ...

  • @karpagammohan6605
    @karpagammohan6605 Před 2 lety

    Thank you so much sir.. Really helpful..

  • @divinenana2039
    @divinenana2039 Před 2 lety +1

    Great content i love this... Well done!!!! Kudos

  • @nehasabnani-my3si
    @nehasabnani-my3si Před rokem

    Thank you sir for this tutorial

  • @falgunidattani224
    @falgunidattani224 Před 3 lety +3

    Thank you so much for explaining this with such simplicity. It was to the point and clear as crystal.
    One more request, can we please have more on elasticsearch and its use on rest API ?

  • @apoorveesinha8679
    @apoorveesinha8679 Před 4 lety +7

    Thank you for providing us with such a meaningful and helpful resource in the most easily accessible way. We are truly indebted to you for your efforts to educate people with this gem of a tutorial. Also, thank you for making a successful attempt at giving relevant and easily understandable examples of concepts that we otherwise would have taken ages to learn. Keep up the good work sir.

    • @apoorveesinha8679
      @apoorveesinha8679 Před 4 lety

      Sir XML is not working on my system..are there any specific changes that need to be made in the code shown in the video?

  • @ravikiran3196
    @ravikiran3196 Před 3 lety +1

    @Navin sir-you are an excellent teacher. 🙏 Thank you. Session was very worthy. Gained good knowledge on Rest API.

  • @VivekManikanta
    @VivekManikanta Před 3 lety +2

    Your explanation extremely stupendous. Can you please start sessions on rest assured (API Automation), many people like me will update the skills in software testing.

  • @Srvsaikumar
    @Srvsaikumar Před 4 lety

    very useful.. thank you very much sir..

  • @sreeshakv5405
    @sreeshakv5405 Před 2 lety

    Thank you for the amazing lecture sir

  • @pvpatil2007
    @pvpatil2007 Před 4 lety

    very good video. Thanks a lot!!!

  • @JavedAnsari-ko9cg
    @JavedAnsari-ko9cg Před 3 lety +1

    No comparison for u Naveen Sir...Fan of ur teaching style

  • @alokranjan5885
    @alokranjan5885 Před 4 lety +2

    Trust me, you are the best..I always come back to you after several visits

  • @rajeevarora4543
    @rajeevarora4543 Před 4 lety +6

    hi Navin, Thank you so much for hsaing knowledge; your session are always great. I am working on one API related project and need few trainees who are good in API so incase you like to refer few of your trainee who you feel are good then its will be great help

  • @naveen-ib5ly
    @naveen-ib5ly Před 4 lety +1

    awesome work bro , please keep up your good work...

  • @likithagunda7048
    @likithagunda7048 Před 4 lety +1

    Needless to say, amazing content!

  • @RajenGenius
    @RajenGenius Před 4 lety

    God bless you sir for your help

  • @divyamahesh9032
    @divyamahesh9032 Před 2 lety

    Great job sir!!
    I'm really thank full to u

  • @vivivi5678
    @vivivi5678 Před 4 lety

    Very clear and understandable one ✨

  • @cybertronsid
    @cybertronsid Před 5 lety

    Thanks for the video.

  • @navjeetkaur5742
    @navjeetkaur5742 Před 2 lety

    Thank u so much Navin sir.

  • @user-qh8nm8xh6i
    @user-qh8nm8xh6i Před 3 lety

    thank you very much , it help me a lot about my work of graduation

  • @arunendraprakashdubey7904

    I love this chanel.

  • @sajadsh8260
    @sajadsh8260 Před 3 lety

    you are great , you teach great , i love you , really thank youuuuuuuuuuuuuuuuuuuuuuuu

  • @saddamahmad2310
    @saddamahmad2310 Před 5 lety

    thank you very much sir for this video

  • @saidaraomaddigunta9195

    Your all vedio's super sir i want React js vedio sir as early as possible to build up. Any thanks for sharing knowledge

  • @bagthavachalanucavasu

    that is tricky . thanks for successfully video

  • @AnkitSingh-ul9hy
    @AnkitSingh-ul9hy Před 3 lety

    You are the bestest teacher

  • @school8066
    @school8066 Před 4 lety +1

    Great work Reddy bhai....

  • @KoppulaAvinash
    @KoppulaAvinash Před 2 lety

    Thanks!

  • @barkeeper7887
    @barkeeper7887 Před 4 lety

    Perfect explanation

  • @rajasekharreddy6891
    @rajasekharreddy6891 Před 5 lety

    Great teaching sir plzzz make a full video on devops ..wtng for u r rply sirr

  • @brunotschopp7168
    @brunotschopp7168 Před 5 lety

    Hi, im new to web service and kinda lost.
    I'm working on a codename one mobile project and have to make it communicate with a wildfly java server.
    Can i use this tutorial as an example ?
    Thanks