I can create importers/publishers for any repo while targeting a specific repo URL
I have two repositories- repo1 and repo2. If I POST to the repo1 URL to create an importer/publisher, I can target repo2 with the repository field so that the importer/publisher gets created on repo2 instead.
http --auth admin:admin --json POST http://127.0.0.1:3000/api/v3/repositories/repo1/publishers/file/ name='publisher1' feed_url='asdfasdf' download_policy='IMMEDIATE' repository='http://127.0.0.1:3000:3000/api/v3/repositories/repo2/'
This is not what I would expect from a RESTful API; I would expect any request to the repo1 url to target the repo1 resource, and not have to pass an additional repository parameter.
Please register to edit this issue