[Pulp-dev] [pulp 3] proposed change to publishing REST api

Michael Hrivnak mhrivnak at redhat.com
Mon Oct 23 18:47:49 UTC 2017


On Mon, Oct 23, 2017 at 11:19 AM, Jeremy Audet <jaudet at redhat.com> wrote:

> > Once the task has completed, the user should be free to forget the task
> ID and be able to use natural keys to find and inspect resources that got
> created/updated.
>
> I sure hope we won't be asking the user to build URLs themselves. That
> promotes a much tighter coupling between clients and API versions, making
> client-side code more complex, and making server-side upgrades and changes
> harder. Making a discoverable API is hard, but there are pay-offs.
>

I had the same initial reaction, but I think the key verb in Jeff's email
is "find". I can use a natural key find a specific resource by querying a
collection endpoint with filters.

GET /api/v3/repositories/?name=myfavoriterpms

-- 

Michael Hrivnak

Principal Software Engineer, RHCE

Red Hat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-dev/attachments/20171023/10b55c02/attachment.htm>


More information about the Pulp-dev mailing list