bower / registry

The Bower registry
https://registry.bower.io/packages
MIT License
292 stars 66 forks source link

Lookup by URL #25

Closed satazor closed 8 years ago

satazor commented 11 years ago

Lookup currently works only with names, and outputs an object with name and url. This method needs to look also for URLs. See: https://github.com/bower/bower/issues/513

Perhaps implement this on the server rewrite. //cc @danheberden @svnlto

svnlto commented 11 years ago

Perhaps implement this on the server rewrite.

The spec currently only specifies search by name and keyword properties.

GET /packages/search/{keyword}/{?q}

Returns a Packages Result with a filtered list of packages with keywords matching {keyword}

Having said this, I don't see why we can't also query for a urlproperty.

@danheberden Perhaps we can extend the spec?

sheerun commented 10 years ago

I think q should be checked in both names and urls of registered packages.

bower search angular-bootstrap
Search results:

    angular-bootstrap git://github.com/angular-ui/bootstrap-bower.git
bower search angular-bootstrap
Search results:

    angular-bootstrap git://github.com/angular-ui/bootstrap-bower.git

Also URL should be normalized.