Commit 92b9a87f by Alan de Oliveira

Something

parent b532e8e6
......@@ -56,12 +56,15 @@ public class PhoneService {
}
@GET
@Produces(MediaType.APPLICATION_JSON)
public Response getTel() {
return Response.ok(new Phone(8, "", "Motorola", " Moto G5s Plus", " ")).build();
@GET
@Path("samsung")
@Produces(MediaType.APPLICATION_XML)
public Response samsung() {
return Response.ok(new Phone(8,"", " ", " ", " Samsung galaxy s9")).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