You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the next fractal-server release, we are introducing a breaking change in the POST /api/v2/task/collect/pip/ endpoint.
In general, the endpoint will expect data instead of json, and it will be a multipart/form-data endpoint.
For the case of a "pypi-based" collection (namely the one with e.g. `package="fractal-tasks-core") nothing else changes.
For the case of a "local-wheel-file" based collection, there are other changes:
The package property of the request body must be unset, instead of pointing to the absolute path of the wheel file
The packge_version property of the request body must be unset (this was already a requirement)
The wheel file should be uploaded as part of the files object. An example (in Python) would be files = {"file": (wheel_file_name, wheel_file_contents, "application/zip")}
When pinned_package_versions is set, it must be sent to the API as a JSON string, and not as a JSON object. This holds for both the pypi-based and the local-wheel-based collections.
With the next fractal-server release, we are introducing a breaking change in the
POST /api/v2/task/collect/pip/
endpoint.data
instead ofjson
, and it will be amultipart/form-data
endpoint.package
property of the request body must be unset, instead of pointing to the absolute path of the wheel filepackge_version
property of the request body must be unset (this was already a requirement)files
object. An example (in Python) would befiles = {"file": (wheel_file_name, wheel_file_contents, "application/zip")}
Currently available in https://github.com/fractal-analytics-platform/fractal-server/tree/2045-support-uploading-a-wheel-file-directly-for-task-collection
The text was updated successfully, but these errors were encountered: