【问题标题】:How to rebuild nexus repository metadata using REST API?如何使用 REST API 重建关系存储库元数据?
【发布时间】:2016-03-13 03:34:01
【问题描述】:

我在 nexus REST API 中发现 /service/local/metadata/{domain}/{target}/content。

但是当我尝试执行它时(例如使用 curl)

curl -v --request DELETE  --user "login:password"  --silent http://nexusHost/local/metadata/repositories/myRepository/content

我收到了这条消息,但工作还没有完成

HTTP/1.1 405 La m�thode HTTP DELETE n''est pas support�e par cette URL

你能帮我完成这项工作吗?谢谢。

注意:使用 Nexus 2.11.3-01

【问题讨论】:

    标签: rest metadata nexus


    【解决方案1】:

    你只是拼错了你的请求! (您忘记在本地之前添加 service/

    curl -v --request DELETE  --user "login:password"  --silent http://nexusHost/service/local/metadata/repositories/myRepository/content
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-13
      • 1970-01-01
      • 1970-01-01
      • 2021-05-22
      • 2010-09-26
      • 2013-03-12
      • 2020-12-05
      • 1970-01-01
      相关资源
      最近更新 更多