users@wadl.java.net

Re: Sharing param definitions across multiple requests?

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Fri, 05 Oct 2007 09:19:29 -0400

On Oct 4, 2007, at 9:34 AM, Farrukh Najmi wrote:
>
> I like the way the spec allows a method to be shared via reference
> across multiple resources.
>
> It seem, there is a similar need to share a single param definition
> across multiple methods. I am thinking of case where there are
> certain common request parameters (e.g. "language", "format",
> "count", "startIndex" etc.) used in several different requests.
>
> Perhaps a similar treatment as method element could be applied to
> param element so an instance of it could be a param definition or a
> param reference?
>
Yes, I can see that would be useful. I'll add that to my to-do list
for the next version of the spec.

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.