Publish URI templates for resource types
Bug #274553 reported by
Markus Korn
This bug report is a duplicate of:
Bug #267792: WADL file should specify templated URIs to resources of various types.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restful |
Triaged
|
Medium
|
Unassigned |
Bug Description
When using launchpadlib I often need a link to a resource without needing the content of the resource itself, it would be nice if launchpadlib could provide functions to create this links.
Example:
I would like to search for bug reported by "thekorn" in ubuntu. The obvious way is:
>>> thekorn = launchpad.
>>> ubuntu.
another possible way is:
>>> thekorn = "%s~%s" %(launchpad.
>>> ubuntu.
The last method is many times faster.
Markus
To post a comment you must log in.
We could implement your use case by publishing URI templates for resource types in the WADL. This would also let us get rid of the annoying need to change the XSLT stylesheet every time we add a new resource type. We have discussed this a couple times but haven't implemented it because it would be too much work.