Hi, I am testing an integration procedure for data sync between DSPACE and 
legacy system. The procedure make use of DSPACE REST API. I am using DSPACE 
5.4.

The DSPACE WS REST /collections/find-collection returns only HTTP 204 
status code, even making sure there is a collection of name passed as a 
parameter.

My test sequence:

curl -H "Content-Type: application/json" --data 
'{"email":"w6ra...@gmail.com", "password":"123456"}' 
http://mmrs2:8080/rest/login
00b05c36-63f7-472f-8901-b4f7d560b079

curl -X GET -H "Content-Type: application/json" -H "Accept: 
application/json" -H "rest-dspace-token: 
00b05c36-63f7-472f-8901-b4f7d560b079" 
http://mmrs2:8080/rest/communities/521?expand=collections
{"id":521,"name":"LBM","handle":"123456789/527","type":"community","link":"/rest/communities/521","expand":["parentCommunity","subCommunities","logo","all"],"logo":null,"parentCommunity":null,"copyrightText":"","introductoryText":"Laboratório
 
de Biologia Molecular","shortDescription":"Laboratório de Biologia 
Molecular","sidebarText":"CNPEM->LNBio->LBM","countItems":0,"subcommunities":[],"collections":[{"id":6,"name":"Software","handle":"123456789/580","type":"collection","link":"/rest/collections/6","expand":["parentCommunityList","parentCommunity","items","license","logo","all"],"logo":null,"parentCommunity":null,"parentCommunityList":[],"items":[],"license":null,"copyrightText":"","introductoryText":"","shortDescription":"","sidebarText":"","numberItems":0},{"id":13,"name":"Software","handle":"123456789/587","type":"collection","link":"/rest/collections/13","expand":["parentCommunityList","parentCommunity","items","license","logo","all"],"logo":null,"parentCommunity":null,"parentCommunityList":[],"items":[],"license":null,"copyrightText":"","introductoryText":"","shortDescription":"","sidebarText":"","numberItems":0},{"id":20,"name":"Software","handle":"123456789/594","type":"collection","link":"/rest/collections/20","expand":["parentCommunityList","parentCommunity","items","license","logo","all"],"logo":null,"parentCommunity":null,"parentCommunityList":[],"items":[],"license":null,"copyrightText":"","introductoryText":"","shortDescription":"","sidebarText":"","numberItems":0}]}

curl -H "Content-Type: application/json" -H "Accept: application/json" -H 
"rest-dspace-token: 00b05c36-63f7-472f-8901-b4f7d560b079" -X POST 
"http://mmrs2:8080/rest/collections/find-collection"; -d '{"name": 
"Software"}'

Please if someone used "find-collection" REST successfully let me know if I 
am doing something wrong, etc.

Thanks. Wagner

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to