<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">&lt;<a href="mailto:tdb2@ecs.soton.ac.uk" target="_blank">tdb2@ecs.soton.ac.uk</a>&gt;</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>
&gt; Hi all,<br>
&gt;<br>
&gt;<br>
&gt; I am trying to find some documentation on the REST API for EPrints and<br>
&gt; so far, the only thing I can find is this.<br>
&gt;<br>
&gt;<br>
&gt; REST<br>
</div>&gt;       * A &quot;REST&quot; style interface to objects,<br>
<div class="im">&gt;         via /rest/eprint/23/title.txt, for example. This can also<br>
&gt;         support &quot;PUT&quot; to alter fields!<br>
&gt;<br>
&gt;<br>
&gt; Is there any better documentation out there? I am specifically<br>
&gt; interested in whether I can get all publications from an author via<br>
&gt; 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 &#39;rest&#39; role (e.g. in cfg.d/<a href="http://user_roles.pl" target="_blank">user_roles.pl</a>):<br>
<br>
$c-&gt;{user_roles}-&gt;{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&#39;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 &quot;POST&quot;<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>