Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/main/java/org/acme/quickstart/GreetingResource.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.acme.quickstart;

import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
Expand All @@ -13,4 +14,10 @@ public class GreetingResource {
public String hello() {
return "hello";
}
}

@POST
@Produces(MediaType.TEXT_PLAIN)
public void post() {
System.out.println("hello world");
}
}