title: Simple restful webservice example with multiple @get and @put
body: <p>Dear Stackoverflow user,
  Could anyone give me an simple example of restful webservice with 2 or more @get and @put in netbeans? Any simple plain text example is sufficient. And it should not include any database!
  I would be very glad if some one could help me.
  I tried something but it didn't work out, here's the code </p>
  
  <pre><code>@Path("/simple")
  public class SimpleResource_1 {
      @Context
      private UriInfo context;
      @GET
      @Produces("text/plain")
      public String getText() {
          return "hello world";
      }
  @Path("/simple/simple1")
  public class SimpleResource_11 {
  
      @Context
      private UriInfo context;
  @GET
  @Produces("text/plain")
  public String getText1(){
      return "hi";
  }
  }
  </code></pre>
  
  <p>I get runtime error with this code, though there aren't any compilation error.
  Am i doing it right? or is there something i am missing!!</p>
  
  <p>Thanx a ton in advance!</p>
  
  <p>Cheers! </p>