Skip to content

why dont have api like "/api/packages?q=[some]" #4037

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

Closed
franticn opened this issue Sep 18, 2020 · 6 comments
Closed

why dont have api like "/api/packages?q=[some]" #4037

franticn opened this issue Sep 18, 2020 · 6 comments

Comments

@franticn
Copy link

No description provided.

@jonasfj
Copy link
Member

jonasfj commented Oct 6, 2020

Curious, what is the use-case?

@franticn
Copy link
Author

franticn commented Oct 9, 2020

Curious, what is the use-case?

Sorry to reply now, I am developing a vs-code plugin to help developers only need to search for keywords to get the corresponding packages information, including version code and name; But dont have api can help me to do these.

The method I currently use like these:

  1. query packages by using api "api/search?q=keyword"
  2. according selected package's name to query package's infomation by using api "api/documentation/packageName"

@isoos
Copy link
Collaborator

isoos commented Oct 9, 2020

according selected package's name to query package's infomation by using api "api/documentation/packageName"

What's the information that you need form that endpoint? Maybe we serve that better differently?

@franticn
Copy link
Author

franticn commented Oct 9, 2020

What's the information that you need form that endpoint? Maybe we serve that better differently?

Just this package's lastest stable version and history versions
preview1

@isoos
Copy link
Collaborator

isoos commented Oct 9, 2020

Calling the documentation endpoint may not be the best for the list of versions, I'm sure we can figure out better (and faster) endpoints for these.

@sigurdm
Copy link
Contributor

sigurdm commented Oct 6, 2022

I think this has become obsolete with: #4302 there is now tab-completion for package-names in vscode.

Please open a new issue if this is not satisfactory compared to this feature request.

@sigurdm sigurdm closed this as not planned Won't fix, can't repro, duplicate, stale Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants