fsprojects / FSharp.Data

F# Data: Library for Data Access
https://fsprojects.github.io/FSharp.Data
Other
815 stars 287 forks source link

Pagination in the JSON type provider #805

Open forki opened 9 years ago

forki commented 9 years ago

In http://www.navision-blog.de/blog/2014/10/14/retrieving-github-download-counts/ I try to get github download stats by using the JSON type provider. It only shows recent download stats. I assume there is some pagination needed. Is this something that the JSON type provider should do automatically?

ovatsus commented 9 years ago

I don't know, the github api docs don't mentioning anything. Whatever you get with the provider is the same you get when you go to the url in the browser, and there doesn't seem to be any reference on the json to another url with more items

forki commented 9 years ago

I found something:

Information about pagination is provided in the Link header of an API call

https://developer.github.com/guides/traversing-with-pagination/

forki commented 9 years ago

also @tpetricek implemented some manual paging in http://channel9.msdn.com/Events/dotnetConf/2015/The-F-Path-to-Data-Scripting-Nirvana

ovatsus commented 9 years ago

Interesting. Would be great to support that. Marking as up for grabs ;)