<div dir="ltr">I can't remember why we decided to remove UUID from the responses. It sounds like we should add them back. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 27, 2018 at 12:26 PM, Justin Sherrill <span dir="ltr"><<a href="mailto:jsherril@redhat.com" target="_blank">jsherril@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All!<br>
<br>
I started playing around with pulp 3 and generated bindings via <a href="https://pulp.plan.io/issues/3580" rel="noreferrer" target="_blank">https://pulp.plan.io/issues/35<wbr>80</a> and it results somewhat in what you would expect. Here's an example:<br>
<br>
# @param id A UUID string identifying this repository.<br>
# @param [Hash] opts the optional parameters<br>
# @return [Repository]<br>
def repositories_read(id, opts = {})<br>
data, _status_code, _headers = repositories_read_with_http_in<wbr>fo(id, opts)<br>
return data<br>
end<br>
<br>
<br>
Notice that the UUID is to be passed in. When creating a repository, i only get the _href:<br>
<br>
{<br>
"_href": "<a href="http://localhost:8000/pulp/api/v3/repositories/bfc61565-89b1-4b7b-9c4a-2ec91f299aca/" rel="noreferrer" target="_blank">http://localhost:8000/pulp/ap<wbr>i/v3/repositories/bfc61565-89b<wbr>1-4b7b-9c4a-2ec91f299aca/</a>",<br>
"_latest_version_href": null,<br>
"_versions_href": "<a href="http://localhost:8000/pulp/api/v3/repositories/bfc61565-89b1-4b7b-9c4a-2ec91f299aca/versions/" rel="noreferrer" target="_blank">http://localhost:8000/pulp/ap<wbr>i/v3/repositories/bfc61565-89b<wbr>1-4b7b-9c4a-2ec91f299aca/versi<wbr>ons/</a>",<br>
"created": "2018-04-27T15:26:03.546956Z",<br>
"description": "",<br>
"name": "test",<br>
"notes": {}<br>
}<br>
<br>
Meaning, there's really no way to use this specific binding with the return format for pulp. I imagine most binding generation would be expecting the user to know the ID of the objects and not work off of _hrefs. Any reason to not include the IDs in the response?<br>
<br>
Justin<br>
<br>
______________________________<wbr>_________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com" target="_blank">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/pulp-dev</a><br>
</blockquote></div><br></div>