Skip to content

Commit 7f0747d

Browse files
authored
Added Test Web Service
1 parent e9d3d39 commit 7f0747d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

RSController.java

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package rnd.web;
2+
3+
import javax.ws.rs.GET;
4+
import javax.ws.rs.Path;
5+
import javax.ws.rs.Produces;
6+
import javax.ws.rs.core.MediaType;
7+
8+
@Path("/hello")
9+
public class RSController {
10+
11+
public RSController() {
12+
}
13+
14+
@GET
15+
@Produces(MediaType.TEXT_PLAIN)
16+
public String sayHello() {
17+
return "Hello REST World";
18+
}
19+
20+
}

0 commit comments

Comments
 (0)