Commit b532e8e6 by Alan de Oliveira

All right

parent dbcc2edc
......@@ -22,6 +22,8 @@ import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.util.Arrays;
import java.util.List;
......@@ -54,5 +56,12 @@ public class PhoneService {
}
@GET
@Produces(MediaType.APPLICATION_JSON)
public Response getTel() {
return Response.ok(new Phone(8, "", "Motorola", " Moto G5s Plus", " ")).build();
}
}
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