THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
You are encouraged to read JAX-RS spec to find out informations information not covered by this documentation.
...
To return or accept Object collections, you need to define an Object collection type. egFor example:
Code Block |
---|
@XmlRootElement(name = "Customers") public class Customers { private Collection<Customer> customers; public Collection<Customer> getCustomer() { return customers; } public void setCustomer(Collection<Customer> c) { this.customers = c; } } @UriTemplate("/customerservice/") public class CustomerService { @HttpMethod("GET") @UriTemplate("/customers/") public Customers getCustomers() { .... } } |
...