Going through the API list

Justin Harris jharris at redhat.com
Fri Jun 4 13:28:36 UTC 2010


----- "Bryan Kearney" <bkearney at redhat.com> wrote:

> I was going over the API list, and I had a couple of questoins:
> 
>   * POST /pools
> 
> Should we allow creating these directly?

I guess the idea is that all pool creation comes from subscriptions?

> 
>   * GET /entitlements/consumer/{consumer_uuid}/product/{product_id} :
> 
> Is this still used?

Seems like the preferred way should be GET /products/{product_id}

> 
>   * POST /products/{product_uuid}/content/{content_id}
> 
> Should this be a put, or shouldd it be POST 
> /products/{product_uuid}/contents

I think the restafarian way to go about this is have some entity that represents the relationship
between a product and a content set, and post to that collection (so the ids would not be in the URL).

I have no idea what this would be called.


> 
> -- bk
> 
> 
> _______________________________________________
> candlepin mailing list
> candlepin at lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/candlepin



More information about the candlepin mailing list