Launchpad's WADL collections don't specify the entry type of which it is a collection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Won't Fix
|
High
|
Unassigned |
Bug Description
I am actually working on a WADL to .NET assembly generator, the development is pretty slow as I keep on hitting regular shortcomings with WADL for Launchpad.
I am trying to walk the links and references in the WADL
So the top list of resources is defined by
<wadl:resources base="https:/
<wadl:resource path="" type="#
</wadl:resources>
so we have the resource "service-root"
for which we have
<wadl:resource_type id="service-root">
<wadl:doc>The root of the web service.</wadl:doc>
<wadl:method name="GET" id="service-
<
<
</wadl:method>
</wadl:
From this I get "service-root-json"
for which I have
<wadl:represent
<wadl:param style="plain"
<wadl:link resource_type="https:/
</wadl:param>
.....
</wadl:
so from here we get "languages"
for which we move next to
<wadl:resource_type id="languages">
<wadl:doc xmlns="http://
The collection of languages.
</wadl:doc>
<wadl:method name="GET" id="languages-get">
<
href="https:/
mediaType=
id="languages
<
</wadl:method>
.....
</wadl:resource>
from here we get "language-page"
next we goto language-page
<wadl:represent
<wadl:param style="plain" name="resource_
<wadl:link/>
</wadl:param>
<wadl:param style="plain" name="total_size" path="$
<wadl:param style="plain" name="start" path="$['start']" required="true"/>
<wadl:param style="plain" name="next_
<wadl:link resource_
</wadl:param>
<wadl:param style="plain" name="prev_
<wadl:link resource_
</wadl:param>
<wadl:param style="plain" name="entries" path="$['entries']" required="true"/>
<wadl:param style="plain" name="entry_links" path="$
<wadl:link resource_type="https:/
</wadl:param>
</wadl:
So here, the language-page does not specify that it is a collection/list over "language".
I know I have
<wadl:link resource_type="https:/
but in this we also have
<wadl:link resource_
AND
<wadl:link resource_
This is ambiguous. How will the tool know which link to choose?
How will the tool I am working on traverse further?
Changed in launchpad: | |
status: | Confirmed → Triaged |
The only way I could think of is to generate the create a customized tool specifically for Launchpad's WADL.