Hello Euler,

The page you located is an old, obsolete REST project (as noted by the
warning at the top of that page:
https://wiki.duraspace.org/display/DSPACE/REST+API). It was an old Google
Summer of Code project, that never was released (as it was never
production-ready or stable).

The current DSpace REST API is documented in the official documentation of
DSpace: https://wiki.duraspace.org/display/DSDOC5x/REST+API  The current
REST API does *not* have a search API.

However, we are developing a search API for DSpace 7 (which will be the
first release where the REST API is fully featured and covers all functions
of DSpace).  The DSpace 7 efforts are documented at:
https://wiki.duraspace.org/display/DSPACE/DSpace+Release+7.0+Status

So, unfortunately, there is no search API at this time. The DSpace 7 search
API is still being built, and will be available when DSpace 7 is released
(likely early 2019).

In the meantime, you could consider querying Solr directly (the underlying
search engine) as Solr itself has a REST API.

- Tim

On Fri, Aug 10, 2018 at 4:54 AM euler <[email protected]> wrote:

> Dear All,
>
> Apologies in advance if this has been asked before. I would like to know
> if the /search endpoint for REST Api is already available? I looked at
> demo.dspace.org/rest and I did not find the /search endpoint there.
> Although in
> https://wiki.duraspace.org/display/DSPACE/REST+API#RESTAPI-Contentsearching,
> it is there along with /harvest. Am I missing something here? With what
> version of DSpace is this available?
>
> Content searching
>
>
>
> C
>
> Verb
>
> URL
>
> Description
>
> Mandatory parameters
>
> Optional parameters
>
> Sorting fields
>
> Response Data
>
> Formats
>
> Response codes
>
>
>
> GET
>
> /search
>
> Return a list of all objects found by searching criteria.
> Notice: community and collection are mutually exclusive options.
>
> -
>
> modifiers{{query=query}}&(community=id or
> collection={{id}}
> idOnly=false
>
> id
> name
> lastmodified
> submitter
>
> Item info with basic metadata for the search results. Additionally return
> only
> identifiers when idOnly=true is used.
>
> json
> xml
>
> 200, 204, 400, 500
>
>
>
> GET
>
> /harvest
>
> Return a list of all objects that have been created, modified or withdrawn
> within specified time range.
>
> -
>
> startdate
> {enddate}}
> community
> collection
> idOnly=false
> withdrawn=false
> Notice: community and collection are mutually exclusive options
>
> -
>
> Contains item info including id, name, handle, metadata, bitstreams
> according to
> the defined requirements. Additionally when idOnly=true only identifiers
> of
> results are returned. If the date is in incompatible format, error 400 is
> returned.
>
> json
> xml
>
> 200, 204, 400, 500
>
> I am being asked if the search API in REST can be used in the repository
> (DSpace 5.4) that I am working on.
>
> Thanks in advance and hoping for a positive response.
>
> Best regards,
> euler
>
> --
> All messages to this mailing list should adhere to the DuraSpace Code of
> Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
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 [email protected].
To post to this group, send email to [email protected].
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