-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[API] Ability to download entire plugin list in one request #32
Comments
Actually, an alternative that I just thought of. If the API can return the number of total results in the JSON, that might enable me to use paging. GitHub does something like this in their Search API where they return the Essentially, I'm using Apple's NSTableView which needs to know how many rows the table has in order to make scrolling work reasonably well. This solution would still take some refactoring and I would need to evaluate how the user experience will respond to incrementally loading pages as the user scrolls, but if it's significantly easier to implement than I can look into it. |
We actually have header based pagination in the API already 😄 check out:
The response will have these headers:
You can use the I also plan to make better use of the |
@willdavis ahah! I didn't think to look in the header 😌 I can potentially start playing with this over the next couple days. It would still be significantly easier on my end to get all the results in one request though. |
Copying over from this thread.
I'd like the ability to get the entire list of plugins in one HTTPS request for Sketch Plugin Manager since it would be a significant amount of work to incorporate paging. It's okay if the request takes a little longer to load or if it's cached and potentially a little out of date (no more than a day).
The text was updated successfully, but these errors were encountered: