“通过API添加的Dspace中的位流的名称为null?

问题描述 投票:1回答:1

我正在尝试通过邮递员向项目中添加比特流。发布时,我选择body作为“ form-data”,并添加了一个密钥作为“ file”并选择了一个文件。除此之外,我还给了key作为“名称”和值作为文件名。它已成功添加到Item,但名称为null。

enter image description here

api postman dspace
1个回答
0
投票

我假设您使用DSpace 6。


首先:请确保您已登录。通过调用]获取JSESSIONID cookie。

Post: http://yourserver.com/rest/login   

带有Query Params emailpassword


然后:像这样发布比特流

Post: http://yourserver.com/rest/items/your-item-id/bitstreams

Body下添加文件并选择binary

Add file. DSpace 6 API / Postman

filenamedescription设置为Query Params

Add filename and description for bitstream. DSpace 6 API / Postman

命中发送。

© www.soinside.com 2019 - 2024. All rights reserved.