UrbanPro
true

Learn Advanced Java coaching from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

How to create Rest web services in Java

Gaurav
02/09/2016 0 0

Web services are web application components that lets two different applications to communicate over the network.Let if an application which in written java provides web services can be communicated through other languages like PHP,.Net,Python etc.

 

Restful Web Services are very known among web programmers.Using web service you can allow to different applications build on any technology like PHP,.Net etc to communicate over the network in platform independent manner.

 

JAX-RS API is used to develop RestFul web services. in Java. Most commonly used implementation isJersey.JAX-RS specification provides annotations that are used by service programmer for annotating service methods and service class.

Commonly used annotations

  1. @Path: This annotation is used to associate a URI to a service class and methods.
  2. @GET:  This annotation is used to associate HTTP GET request to a service method.
  3. @POST: This annotation is used to associate HTTP POST request to a service method.
  4. @PUT: This annotation is used to associate HTTP PUT request to a service method.
  5. @DELETE: This annotation is used to associate HTTP DELETE request to a service method.
  6. @Produces:This annotation is used to specify the representation of a resource which is produced by a method.
  7. @Consumes: This annotation is used to specify the representation of a resource which is consumed by a method.

For detailed explanation click here.

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

Why Should We Learn Java Language?
Most of starters has confusion today that which of the programming language should be chosen to work on. It totally depends upon your need. As per my opinion, if you want to grow your career in IT industry...
X

Looking for Advanced Java coaching Classes?

The best tutors for Advanced Java coaching Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Advanced Java coaching with the Best Tutors

The best Tutors for Advanced Java coaching Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more