title: Postman displaying an Error: format not supported by the requested resource
body: <p>I was trying my first demo program in Restful APIs using JAX-RS. </p>
  
  <p>I'm using Postman as my REST client. I tried this piece of code which should display <code>hello world</code> in my REST client. Instead, I got an error as shown below: </p>
  
  <p><code>InjectDemo</code> class: </p>
  
  <pre><code>@Path("/injectdemo")
  @Consumes(MediaType.TEXT_PLAIN)
  @Produces(MediaType.TEXT_PLAIN)
  public class InjectDemo {
  
      @GET
      @Path("/annotations")
      public String getParametersUsingAnnotation(){
          return "hello world";
      }
  }
  </code></pre>
  
  <p>I'm getting this error in my Postman REST client. Note that, I placed the class files in the correct directory only.</p>
  
  <p><a href="https://i.stack.imgur.com/C73qd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C73qd.png" alt="enter image description here"></a></p>