Commit cf92caac by Alan de Oliveira

This is a project with Eclipse

parent f0fc8113
...@@ -37,6 +37,8 @@ public class PhoneService { ...@@ -37,6 +37,8 @@ public class PhoneService {
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public List<Phone> getPhones() { public List<Phone> getPhones() {
Phone phone2 = new Phone(99,"anything", "nothing", "everything","otherthing");
return Arrays.asList( return Arrays.asList(
new Phone(0, "", "motorola-xoom-with-wi-fi", "Motorola XOOM(tm) with Wi-Fi", "The Next, Next Generation\r\n\r\nExperience the future with Motorola XOOM with Wi-Fi, the world's first tablet powered by Android 3.0 (Honeycomb)."), new Phone(0, "", "motorola-xoom-with-wi-fi", "Motorola XOOM(tm) with Wi-Fi", "The Next, Next Generation\r\n\r\nExperience the future with Motorola XOOM with Wi-Fi, the world's first tablet powered by Android 3.0 (Honeycomb)."),
......
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