package com.infosupport.jee.demo;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

@Path("/tweets")
public class TweetResource {
    @GET
    @Produces("text/plain")
    public String getTweets() {
        return "tweets";
    }
    
    @GET
    @Path("{id}")
    @Produces("text/plain")
    public String getTweet(@PathParam("id") String id) {
        return "a tweet";
    }
}

@@ -51,95 +51,9 @@
 .rs.
-GET;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.PathParam;%0Aimport javax.ws.rs.Produces
+*
 ;%0A%0A@
@@ -346,10 +346,144 @@
 ;%0A    %7D%0A
+    %0A    @DELETE%0A    @Path(%22%7Bid%7D%22)%0A    public void deleteTweet(@PathParam(%22id%22) String id) %7B%0A        /* delete tweet with id */%0A    %7D%0A
 %7D%0A

Introduce @DELETE annotation