Project

Profile

Help

Issue #3850

Updated by daviddavis over 6 years ago

The hrefs for objects returned from the bindings have full urls with hostname, port, etc. However, the parameters require relative URIs: urls: 

 <pre><code class="python"> 
 from swagger_client.api.repositories_api import RepositoriesApi 
 api = RepositoriesApi() 
 api.repositories_list() # 'href': 'http://localhost:8000/pulp/api/v3/repositories/1/' 'http://localhost:8000/pulp/api/v3/repositories/3a723819-6302-4352-8ac6-3875ac7b7429/' 
 api.repositories_read('/repositories/1/') api.repositories_read('/repositories/3a723819-6302-4352-8ac6-3875ac7b7429/') # have to use relative URI path 
 </code></pre> 

 We should be returning relative URIs in our API.

Back