Daniel15 / simple-nuget-server

A very simple PHP NuGet server
MIT License
116 stars 43 forks source link

Implement paging #27

Closed Roemer closed 6 years ago

Roemer commented 6 years ago

When using list, nuget automatically tries to page with a pagesize of 30. As paging is not implemented yet, it will output only 30 results and then endlessly loop with calls like:

GET http://myserver/Search()?$orderby=Id&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=30&$top=30&semVerLevel=2.0.0
OK http://myserver/Search()?$orderby=Id&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=30&$top=30&semVerLevel=2.0.0 40ms 

Can be simply reproduced by calling: nuget list -AllVersions -Verbosity detailed -Source http://myserver

Daniel15 commented 6 years ago

Good catch. Would you like to send a pull request to improve this?

Daniel15 commented 6 years ago

Fixed in #35