Commit 484d8f65 authored by Gabriele Civitarese's avatar Gabriele Civitarese

Aggiunto endpoint

parent 67b84e3a
......@@ -2,6 +2,7 @@ package services;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
@Path("/helloworld")
......@@ -15,6 +16,15 @@ public class HelloWorld {
}
@GET
@Path("{name}")
@Produces("text/plain")
public String helloWorldName(@PathParam("name") String name){
return "Hello, "+name+"!";
}
@GET
@Produces("application/json")
public String helloWorld2(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment