<div dir="ltr">Hi Tim,<br><br>This is fantastic, many thanks for this. I will test this in the next few days.<br><br>Best wishes,<br>Masud<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 22 January 2013 10:01, Tim Brody <span dir="ltr"><<a href="mailto:tdb2@ecs.soton.ac.uk" target="_blank">tdb2@ecs.soton.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, 2013-01-18 at 10:30 +0000, Masud Khokhar wrote:<br>
> Hi all,<br>
><br>
><br>
> I am trying to find some documentation on the REST API for EPrints and<br>
> so far, the only thing I can find is this.<br>
><br>
><br>
> REST<br>
</div>> * A "REST" style interface to objects,<br>
<div class="im">> via /rest/eprint/23/title.txt, for example. This can also<br>
> support "PUT" to alter fields!<br>
><br>
><br>
> Is there any better documentation out there? I am specifically<br>
> interested in whether I can get all publications from an author via<br>
> the API, something like /rest/author/family_name+first_name ?<br>
<br>
</div>Hi,<br>
<br>
What version of EPrints are you running?<br>
<br>
There is an experimental REST interface that lives at /rest/. You will<br>
need to give your user the 'rest' role (e.g. in cfg.d/<a href="http://user_roles.pl" target="_blank">user_roles.pl</a>):<br>
<br>
$c->{user_roles}->{admin} = [qw{<br>
rest<br>
general<br>
...<br>
}];<br>
<br>
(reload Apache to apply the change)<br>
<br>
This is driven by EPrints/Apache/REST.pm. One mention of it here:<br>
<a href="http://wiki.eprints.org/w/New_Features_in_EPrints_3.2#REST" target="_blank">http://wiki.eprints.org/w/New_Features_in_EPrints_3.2#REST</a><br>
<br>
<br>
Otherwise, I'm working on support CRUD/REST for EPrints URIs:<br>
<a href="http://wiki.eprints.org/w/API:EPrints/Apache/CRUD" target="_blank">http://wiki.eprints.org/w/API:EPrints/Apache/CRUD</a><br>
<br>
CRUD is missing the ability to update records - what is normally "POST"<br>
to an existing URI.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
All the best,<br>
Tim<br>
</font></span><br>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" target="_blank">http://www.eprints.org/tech.php/</a><br>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" target="_blank">http://wiki.eprints.org/</a><br>
<br></blockquote></div><br></div>