When the AQL expression in the payload contains the .include(...), as shown
below, and I post with an authenticated user, then AQL search returns a
limited set of results (limited to 1000). On the other hand, without the
.include(...), I get all the 7K+ artifacts in the response JSON. I would
like to know if I can post subsequent request with the response range
specified using the HTTP Range Header or query parameters, but I am not sure
what is supported by Artifactory REST API, and some things I have tried did
not work. Please, advice how to POST a request with a response range
specified in the Range header or query parameters using Java so that the
"range" in the response will be 1000 - 2000, for example.

My Scenario Details:
User Type: authenticated user
Resource URI: http://localhost/api/search/aql
Method: POST
Payload: items.find({"type" : "file","$or":[{"repo" : "apps-release-local",
"repo" : "libs-release-local" }]}).include("@build.name", "@build.number")

Response: 
{
  "results": [
    {...},
     ...
     ...
    {...}
  ],
  "range": {
    "start_pos": 0,
    "end_pos": 1000,
    "limit": 1000
  }
}

Desired response:
Response: 
{
  "results": [
    {...},
     ...
     ...
    {...}
  ],
  "range": {
    "start_pos": 1000,
    "end_pos": 2000,
    "limit": 1000
  }
}


Thank you,
Russ



--
View this message in context: 
http://forums.jfrog.org/Specifying-a-range-for-AQL-search-POST-requests-tp7580526.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to