Re: [Resteasy-users] handling polymorphic rest request

2013-08-24 Thread Ryan McDonough
If this were a GET request, I'd agree with Friso in questioning your need for a polymorphic response. But since you're returning the result of a POST operation, this should be a more reasonable, assuming A & B are also in the same class hierarchy. If the two response types are completely disjoint,

Re: [Resteasy-users] handling polymorphic rest request

2013-08-19 Thread Friso Vrolijken
Hi Jason, First I'd ask myself if I'd really want this. The basic idea behind REST is that you address a resource, for which you might have several representations. Does not sound like you're doing that. If you find that you indeed need to do that, I suppose the easiest solution would be to h