Hi Aroldo, I haven't checked if small changes are needed at this time (content is a couple of years old) but it should give you at least an idea of what is needed https://github.com/DSpace-Labs/DSpace7RestTutorial The repository contains also a postman collection with examples for the submission. Hope this help, Andrea ________________________________ From: [email protected] <[email protected]> on behalf of Aroldo Rique Júnior <[email protected]> Sent: Saturday, January 13, 2024 8:28:58 PM To: DSpace Developers <[email protected]> Subject: [dspace-devel] Submitting items using dspace 7 REST API
Guys, is anyone using the Dspace 7.x REST API to submit items? I can log in and check the status normally. I've already learned the /server/api/authn/login and /server/api/authn/status calls. I haven't been able to submit an item yet. From what I understand, first I authenticate and then I look for an id passing the uuid of the collection as a parameter, through the REST call /server/api/submission/workspaceitems?owningCollection=c57788fc-ad35-4e86-9b3c-764bad9d8bca And then, how do I submit my form fields? With which REST call? I created a test form with just one metadata: dc.title. Checking how the submission process occurs in the Chrome inspector, I saw that the REST call /server/api/submission/workspaceitems/155687 is executed with PATCH. Wouldn't it be POST? [image.png] Does anyone have a complete example of item submission using the REST API? Att, Aroldo -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-devel/CACKFi%2BfQ%2BRNtU%3DLKQC9HY-uqkAxWY8VRq42CY5yRTRrgFdnRBg%40mail.gmail.com<https://groups.google.com/d/msgid/dspace-devel/CACKFi%2BfQ%2BRNtU%3DLKQC9HY-uqkAxWY8VRq42CY5yRTRrgFdnRBg%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-devel/DB9P189MB1707685753E38285F885A5B6A56D2%40DB9P189MB1707.EURP189.PROD.OUTLOOK.COM.
