public interface ListResource
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
list()
List available resources.
|
javax.ws.rs.core.Response list()
The default list limit can be overridden using the limit
parameter, and disabled completely using a value of -1.
Item lists are paginated using the page
parameter.
The page, limit, and total number of items is returned in the Content-Range response header in the form:
page=1; count=20; total=50
If the header X-Stream
is set to true
no count of total items will be performed. This is more efficient when returning large
numbers of items or when limiting is disabled completely.
Example:
curl http://localhost:7474/ehri/[RESOURCE]/list?page=5&limit=10
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.