Actions
Story #2824
closedAs a user, I can see the 'name' as a repository attribute for both the list and detail view
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix
Sprint:
Quarter:
Description
This is what gets returned if I do a get on /api/v3/repositories or /api/v3/repositories/blah/:
{
"_href": "http://127.0.0.1:1234/api/v3/repositories/blah/",
"content": "http://127.0.0.1:1234/api/v3/repositories/blah/content/",
"description": "123456",
"importers": [],
"last_content_added": null,
"last_content_removed": null,
"notes": {},
"publishers": [],
"scratchpad": {
"test": "asgfdds"
}
}
I can tell that the name of the repo is blah from the _href field. But suppose I name my repo something that needs to be escaped:
{
"_href": "http://127.0.0.1:1234/api/v3/repositories/%E6%88%91%E7%9A%84%E6%95%B0%E6%8D%AE/",
"content": "http://127.0.0.1:1234/api/v3/repositories/%E6%88%91%E7%9A%84%E6%95%B0%E6%8D%AE/content/",
"description": "123456",
"importers": [],
"last_content_added": null,
"last_content_removed": null,
"notes": {},
"publishers": [],
"scratchpad": {
"test": "asgfdds"
}
}
Can you tell the name of the repo here?
Actions
Return name for repositories in the api
fixes #2824 https://pulp.plan.io/issues/2824