Details
-
New Feature
-
Status: Closed
-
Could
-
Resolution: Fixed
-
2.0
-
None
-
High
-
RESTWS Sprint - Feb 2013
Description
This is related to RESTWS-310. As described in that ticket, only one module can add a custom search to a resource (see Roger-Darius dialog 2012-11-27). This ticket seeks to remove that limitation.
Can't we do something with a custom annotation something like @SearchHandler(resource,name=null,[required params],[optional params])? The "name" parameter is one way to deal with searches with duplicate signatures, it would identify this search with a known parameter (e.g. search) having the name value. Example:
@SearchHandler(person,"FindMother",["q"],null) responds to GET .../person?q=whatever&search=FindMother as an alternative to @SearchHander(person,null,["FindMother"],null) responds to GET .../person?FindMother=whatever
We might also need to do something about the way searches can return paginated or unpaginated lists.
Gliffy Diagrams
Attachments
Issue Links
- is related to
-
RESTWS-310 RESTWS needs to keep an explicit registry of resources, which should be conditionally populated based on the OpenMRS version
-
- Closed
-
- relates to
-
RESTWS-320 Combine search and getAll methods in MainCrudController
-
- Closed
-