cancel
Showing results for 
Search instead for 
Did you mean: 

REST API: how to get next page in the api/v1/user/search?q=ad request

Arnault_
Confirmed Champ
Confirmed Champ

Bonjour

J'utilise l'API REST et en particulier la requête

.../site/api/v1/user/search?q=ad

sur ma base Nuxeo, cette requête retourne deux pages de résultats. Mais évidemment, seule la première page de résultats est fournie dans la première réponse

{u'isNextPageAvailable': True, u'numberOfPages': 2, u'hasError': False, u'pageSize': 50, u'isLasPageAvailable': True, u'errorMessage': None, u'entity-type': u'users', u'isPreviousPageAvailable': False, u'currentPageSize': 50, u'resultsCount': 54, u'isSortable': False, u'isPaginable': True, u'entries': [...]]

Comment obtenir la deuxième réponse?

Merci de votre aide

Cordialement Christian

2 REPLIES 2

Greg_Drayon
Star Contributor
Star Contributor

I tried on Nuxeo 7.4.

What Nuxeo sends back is also a list of parameters you can give in your query. "currentPageIndex" is also one of these arguments (starts at 0 and is the the default value). So you can send:

.../site/api/v1/user/search?q=ad[&]currentPageIndex=1

Remove the brackets surrounding the "&" and you should get the second page.

Hi,

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.