content_ansible_collection_versions_create endpoint requires a lot of fields from inside uploaded artifact
The https://docs.pulpproject.org/pulp_ansible/restapi.html#operation/upload_collection endpoint allows you to upload a Collection tarball. This operation results in an artifact which can then be used to create a new collection content.
However, the endpoint to do so https://docs.pulpproject.org/pulp_ansible/restapi.html#operation/content_ansible_collection_versions_create seems to have a lot of required fields which are presumably avaialble on the uploaded tarball itself. Is there a way to modify the flow so that associating an artifact from an uploaded collection tarball doesn't need to have all the other information passed.
I am assuming the flow would be to upload tarball, create a collection content using the artifact, add content created to a collection repository.
Ensure galaxy-importer is used when uploading collections
https://docs.pulpproject.org/pulp_ansible/restapi.html#operation/upload_collection already creates a content for you, it validates the collection using galaxy-importer and then creates the content
- Status changed from POST to MODIFIED
Applied in changeset pulp_ansible|0b6440a9ddd1048fd1d6a8945c969a7c28d2a4c9.
Please register to edit this issue