On 12/10/18 1:06 PM, Jeff Ortel wrote:
+1 to counts instead of URLs. The URLs are documented and can be
constructed to listing them on the serialized version does not seem to
add much value. The counts would likely provide more useful
information and consistent with the summary counts.
Just thought of something. The URLs for specific content types are at
the discretion of the plugin writer so now I'm not convinced the user
has a way to reliably construct the URLs themselves.
On 12/7/18 1:30 PM, Dennis Kliban wrote:
What if instead the API returned the number of each content type
added or removed. So a repository version response would look like:
{'base_version': None,
'content_added': {'pulp_file.file': 4},
'content_removed': {'pulp_file.file': 1},
'content_summary': {'pulp_file.file': '3'},
'created': datetime.datetime(2018, 12, 5, 23, 34, 26, 948749,
tzinfo=tzlocal()),
'href': '/pulp/api/v3/repositories/4/versions/1/',
'number': 1}
Thoughts?
_______________________________________________
Pulp-dev mailing list
Pulp-dev@redhat.com
https://www.redhat.com/mailman/listinfo/pulp-dev