This resource address returns the summary of all of the resources in the local cluster, or resources in the local cluster that match a query.
Request Headers | |
---|---|
Accept | The expected MIME type of the response. If the
format parameter is present, it takes precedence over the Accept header. |
Upon success, MarkLogic Server returns status code 200 (OK). The response body contains the requested data.
manage-user
role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage
page-start
and page-length
to fetch resource information
incrementally. These parameters refer to the index and quantity of resources returned. For
example, if there are 20 resources and you want to fetch data on the 6th through 10th ones,
set page-start=6&page-length=5
. The structure of the output returned from this REST API is as follows:
meta
This is a complex structure with the following children:
uri
current-time
elapsed-time
start-min
view-error
This is a complex structure with the following children:
error-type
error-name
error-code
error-message
query-properties
This is a complex structure with the following children:
query-criteria
This is a complex structure with the following children:
name-match
page-start
page-length
result-count
relations
This is a complex structure with the following children:
relation-group
This is a complex structure with the following children:
uriref
typeref
roleref
relation-count
relation
This is a complex structure with the following children:
qualifiers
This is a complex structure with the following children:
qualifier
This is a complex structure with the following children:
uriref
typeref
idref
nameref
uriref
typeref
roleref
idref
nameref
related-views
This is a complex structure with the following children:
related-view
This is a complex structure with the following children:
view-type
view-name
view-uri
http://localhost:8002/manage/v2?view=query&name-match=myData&page-length=5 ==> Returns information about the first 5 resources with a name that include "myData".
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.