Actions
Issue #2814
closedAPI for resources that use HyperlinkedRelatedFields in serializers require full URL of related resource
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
For example, when creating an Importer, the 'repository' needs to be specifed as a URL:
{
"type": "file",
"name": "test-importerr",
"last_updated": "2017-06-12T19:26:36.472529Z",
"feed_url": "https://repos.fedorapeople.org/pulp/pulp/demo_repos/test_file_repo",
"validate": false,
"ssl_validation": false,
"proxy_url": "",
"download_policy": "immediate",
"last_sync": null,
"repository": "http://localhost:1234/api/v3/repositories/test-repo/"
}
It is desirable for the API to return URLs so the client can easily find the the related resource, however, the API should accept a resource Id. In this case it would be 'test-repo'.
Actions