EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #10154


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] EPrints REST API?


Hi Yuri,

EPrints has was it describes as a CRUD (Create, Read, Update Delete) API, which is effectively a REST API.  The link below had some examples of HTTP request you can make using Curl:

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FAPI%3AEPrints%2FApache%2FCRUD%23Examples&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C442e925eacb9400d70ea08ddaf040a36%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638859154064034333%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=1vEOd%2FgWx3225MQK6KpXhs3pC1XY2LfsBR3OvzNsqN8%3D&reserved=0

Obviously to make full use of this you need to understand how to build EPrints XML, which you can provide to add or update items. XML can have schemas and each individual repository's schema (as they will likley have their own bespoke set of fields for an eprint record) can be found at

http://HOSTNAME/cgi/schema

The wiki could certainly do with better documentation for the CRUD API and REST more generally.  Unfortunately, as the days go by I have less and less time I can allocate to editing the wiki. This always feels like a Herculean task (or more accurately a Sisyphean struggle), as there is so much that could really do with updating or just removing as it is no longer relevant.

Regards

David Newman

On 19/06/2025 07:44, Yuri wrote:
CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi!

 is there a plan to implement a REST interface to EPrints? I don't know
SWORD, is it similar? Thanks!


*** Options: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEprints-tech_Mailing_List&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C442e925eacb9400d70ea08ddaf040a36%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638859154068062385%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=0SNs57mGgwhQi4c3x3vGV82NtJ3CgEOKR9MNwTq5Ec8%3D&reserved=0
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C442e925eacb9400d70ea08ddaf040a36%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638859154068071587%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=WStUU9U908hC%2BBCUjL4ARZxh21ET%2FKuvObEpGsQLP98%3D&reserved=0
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C442e925eacb9400d70ea08ddaf040a36%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638859154068080245%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=rCLo5xixpydKgnbPWF%2BxDXIlPdhqP6gZ2KtcnYgHDC4%3D&reserved=0