[Pulp-dev] Pulp api seemingly incompatible with generated bindings

Justin Sherrill jsherril at redhat.com
Fri Apr 27 16:26:19 UTC 2018

Hi All!

I started playing around with pulp 3 and generated bindings via 
https://pulp.plan.io/issues/3580 and it results somewhat in what you 
would expect.  Here's an example:

     # @param id A UUID string identifying this repository.
     # @param [Hash] opts the optional parameters
     # @return [Repository]
     def repositories_read(id, opts = {})
       data, _status_code, _headers = 
repositories_read_with_http_info(id, opts)
       return data

Notice that the UUID is to be passed in.  When creating a repository, i 
only get the _href:

     "_latest_version_href": null,
     "created": "2018-04-27T15:26:03.546956Z",
     "description": "",
     "name": "test",
     "notes": {}

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?


More information about the Pulp-dev mailing list