• REST API - Using dates and multiple-value keys for view queries

    By Marat Golaviev 1 decade ago

    Hi! Is there a way to use multiple values and datetimes for "keys" parameter of a view collection REST service?

    Something like http://server/db.nsf/api/data/collections/name/MyView?keys=smith;john

    Original LotusScript/Java View.GetAllDocumentsByKey can query over multiple columns if provided with an array of values...

    From what I've digged up in source code, SearchKeyNavigator class supports both and ViewParameters class allows arbitrary objects as keys. However, ViewEntryCollectionResource uses DefaultViewParameters, which only supports a string as a "keys" parameter.

    • Unfortunately no ...

      By Dave Delay 1 decade ago

      When the data service handles the request it assumes the keys parameter just holds a single string.  It doesn't look for multiple items, nor does it look for date-time items. 

       

      So your interpretation of the code is correct.  SearchKeyNavigator has support for multiple key values, but we are not using it in the data service.  Sorry about that.

       

      -- Dave Delay