--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/acf7d05b-214b-4537-8565-ff50a89b165e%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
The documentation states the API returns all repositories that your user making the request has permission to browse. If the user has permission to browse all, then the API returns all repos - there is no need to implement paging since the API returns as many as you are allowed to access.It sounds like you either have only 50 repos, the user making the request has restrictive permissions, or how you are counting the results is wrong.
On Wed, May 2, 2018 at 5:56 PM, E.C. Raymond <low...@gmail.com> wrote:
I have read through the API documentation and searched online and lists, etc. When using curl or the browser for api calls, it limits the results to 50. The documentation for api repository calls also states that it doesnt use continuation tokens/pagination. I see no way to change the limit or results to return. Can someone help point me to how to resolve this?
--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
I am not listing ALL repositories, but a specific repo with Releases. The repo was returning no more than 49-50, even though viewing the list of artifacts was showing the number to be more accurate ( 72 ).
It seems like its a specific limitation of the API.For example:curl -s -X GET --header "Accept:application/json" "https://nexus3.example.com/service/rest/beta/search?repository=Releases&name=production-app"
In this case we've found one component which has three assets associated with it. Each component and asset has an id that can be used with the component and asset specific endpoints. Since only one item was found, there is no need for pagination so the continuationToken has a value of null to signify that this is the last page of items. The downloadUrl can be used to directly download the asset from the repository manager.
This endpoint uses a pagination strategy that can be used to iterate through all the search results if desired.
This is returning >50 results. I am running Nexus OSS 3.10. I had to delete enough artifacts to show the results properly as our build scripts were failing to see new releases.
On Thursday, May 3, 2018 at 6:14:32 AM UTC-7, Peter Lynch wrote:The documentation states the API returns all repositories that your user making the request has permission to browse. If the user has permission to browse all, then the API returns all repos - there is no need to implement paging since the API returns as many as you are allowed to access.It sounds like you either have only 50 repos, the user making the request has restrictive permissions, or how you are counting the results is wrong.On Wed, May 2, 2018 at 5:56 PM, E.C. Raymond <low...@gmail.com> wrote:I have read through the API documentation and searched online and lists, etc. When using curl or the browser for api calls, it limits the results to 50. The documentation for api repository calls also states that it doesnt use continuation tokens/pagination. I see no way to change the limit or results to return. Can someone help point me to how to resolve this?--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/acf7d05b-214b-4537-8565-ff50a89b165e%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/8e82f724-d1d5-442a-ae40-93fa54546e1d%40glists.sonatype.com.
Hi,