That's weird you have to bind your resources URI to the root URL. Usually
we also have the application context(sometimes also the rest context)
before the resource URI:

http://localhost:8080/{APP_CONTEXT}/products
http://localhost:8080/{APP_CONTEXT}/accounts
http://localhost:8080/{APP_CONTEXT}/customers


To achieve what you want with details, you can create a bean
that aggregate all information and return it from the JAX-RS resource:

public class Details{
     public List<Product> products;
     public List<Customer> customers;
     public List<Accounts> accounts;

    // get and sets

}

Then expose this bean from a JAX-RS resource:

@Path("details")
public class DetailsResource{

    public Details getDetails(){
        Details details;
        // retrieve Details
        return details;
    }

}




--
*William Antônio Siqueira*
*Java Support Analyst*

*http://fxapps.blogspot.com <http://fxapps.blogspot.com>*
*http://www.williamantonio.wordpress.com
<http://www.williamantonio.wordpress.com>*
*http://williamprogrammer.com <http://williamprogrammer.com>*


2013/12/19 ignou_mca <bbsr_...@cooltoad.com>

> Hi Team,
>    I am working on a rest application on which I have model for the
> following
> objects customers ,accounts and products.
> User can access the details of customers,accounts and products  using the
> following uri.
>
> [1] GET http://localhost:8080/customers
> [2] GET http://localhost:8080/accounts
> [3] GET http://localhost:8080/products
>
> Now my requirement is to combine the responses of the above 3 services in
> one
> service, i.e. when user will try GET http://localhost:8080/details then
> he can
> get all the customers , accounts and products info on the response.
>
> Is there any thing on  RESTEASY which will help me to implement this
> functionality.I don't want change anything on the model class or want to
> add
> any new model like details.
>
> Thanks
> Ignou
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to