get /uploadΒΆ

You can upload a rpm via HTTP(S) in a specific repo

curl --fail --user $(USER):$(PASSWORD) -H 'Accept: application/json' -X POST -F "rpms=@my_filepath.rpm" -F 'env=my_env' -F 'repoid=my_repoid' http://localhost/packagemanager/upload

Note

If you do not set Accept header to json, you will receive an html page as a response.

{
  "status": 0,
  "rpms": [
    {
      "mtype": "application/x-rpm",
      "status": 0,
      "name": "dnf-2.0.0-1.fc25.noarch.rpm",
      "file_size": "323"
    }
  ]
}