On Mon, Oct 23, 2017 at 11:19 AM, Jeremy Audet <jau...@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
_______________________________________________
Pulp-dev mailing list
Pulp-dev@redhat.com
https://www.redhat.com/mailman/listinfo/pulp-dev

Reply via email to