Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Currently only BASIC authentication is supported.  Header arguments values of __ _ and __ _ are expected. 

Alternatively, a session token can be used.  GET /openmrs/ws/rest/session with the BASIC credentials will return the current token value.  This token should be passed with all subsequent calls as a cookie named jsessionid=token.

...

Using "limit" and "startIndex"

Wiki MarkupWebservice REST module supports a default limit that is settable from the "Settings" page of webservice module !Screenshot from 2012-11-16 21:01:21.png|align=center,border=1! The "Default Result Size" and the "Absolute Max Result Size" define the limit of the number of elements that could be returned for any GET call. Apart from these default settings, it is also possible to indicate the limit size per GET request. The format is as module
The "Default Result Size" and the "Absolute Max Result Size" define the limit of the number of elements that could be returned for any GET call. Apart from these default settings, it is also possible to indicate the limit size per GET request. The format is as under:

Code Block
curl -u admin:test -i 'http://localhost:8080/openmrsoenmrs/ws/rest/v1/concept?limit=2'

...