Docs feedback: Add POST/GET to GitLab Generic Packages Repository
In https://docs.gitlab.com/ee/user/packages/generic_packages/#publish-a-package-file, the example provided to publish a file does not work as given (at least on our local installation which to the best of my knowledge is close to default settings). Instead of
curl --header "PRIVATE-TOKEN: <your_access_token>" \
--upload-file path/to/file.txt \
"https://gitlab.example.com/api/v4/projects/24/packages/generic/my_package/0.0.1/file.txt"
it is required for us to use curl -X POST
.
If that is something universally true, I'd recommend to enhance the example that way.