Skip to content
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] Use explicit search endpoint instead of autosuggest #5

Open
tuxuser opened this issue Aug 30, 2020 · 0 comments
Open

[API] Use explicit search endpoint instead of autosuggest #5

tuxuser opened this issue Aug 30, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@tuxuser
Copy link
Contributor

tuxuser commented Aug 30, 2020

Autosuggest only returns maximum of 10 entries.
The actual search endpoint returns everything it can find.

Currently search endpoint is defined here:

public static readonly Uri DisplayCatalogSearch = new Uri("https://displaycatalog.mp.microsoft.com/v7.0/productFamilies/autosuggest?market=US&languages=en-US&query=");
public static readonly Uri DisplayCatalogSearchInt = new Uri("https://displaycatalog-int.mp.microsoft.com/v7.0/productFamilies/autosuggest?market=US&languages=en-US&query=");

The search endpoint is:

/// productFamily: "Games" or "Apps" ... maybe comma separated is possible too?
var DisplayCatalogSearch = $"https://displaycatalog.mp.microsoft.com/v7.0/productFamilies/{productFamily}/products?query={searchQuery}&market=US&languages=en-US&fieldsTemplate=details&platformdependencyname=windows.xbox";

Old endpoint could be renamed to DisplayCatalogAutosuggest or something along those lines.

Any suggestions?

@tuxuser tuxuser added the enhancement New feature or request label Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants