Nexus 3 Rest API检查组件是否存在 [英] Nexus 3 Rest api to check if component exist

查看:248
本文介绍了Nexus 3 Rest API检查组件是否存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许我错过了一些东西,但是我找不到从UI上传组件(jar或dll)到nexus 3存储库的方法.因此,我正在尝试为此工具构建一个工具,以优化上传过程,我需要一种方法来以编程方式检查组件是否存在于nexus存储库中,而所有找到合适的rest api的尝试都失败了.

Maybe I miss something but i can't find a way to upload a component(jar or dll) to the nexus 3 repository from the UI. So I am trying to build a tool for this job, to optimize the upload process I need a way to check if component exist in the nexus repository programmatically, all my tries to find suitable rest api failed.

有人有建议吗?

推荐答案

目前,REST API已作为Beta发布.您可以通过以下链接获得更多信息并给我们反馈:

At this time, the REST API has been released as beta. You can get more information and give us feedback by going to this link: http://blog.sonatype.com/nexus-repository-new-beta-rest-api-for-content

您可以使用一些新的端点来检查组件/资产是否存在,然后使用curl或类似的格式(取决于格式)通过现有的格式端点将其上载.

You can use some of the new endpoints to check if a component/asset exists, and then use curl or something akin depending on the format to upload it via the existing format endpoints.

这篇关于Nexus 3 Rest API检查组件是否存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆