Thanks Victor, Looks like you just documented the unofficial API - here's the permalink http://s.apache.org/zgt ;) Perhaps someone can patch the -/all request to contain platforms as well (or organize it by platform key, or something).
On Tue, Jul 8, 2014 at 6:45 AM, Victor Sosa <[email protected]> wrote: > Hello Folks. > > I've found it out that in the plugins.cordova.io page makes calls to this > one: http://registry.cordova.io/. In fact, for you to get all the plugins > information, you should point to http://registry.cordova.io/-/all, you'll > get a JSON response with all the plugins. > > If you want a plugin with all the version you point to > http://registry.cordova.io/PLUGIN_ID, for instance > http://registry.cordova.io/org.apache.cordova.file > > If you want a plugin with a specific version you point to > http://registry.cordova.io/org.apache.cordova.file/VERSION, for instance > http://registry.cordova.io/org.apache.cordova.file/latest > > One odd thing I've found here is that -/all request doesn't retrieve the > platforms supported by each plugin, if the author specified it of course, > but if you get on specific plugin, it will contain the "platforms:" > attribute. For example, if you use the samples above, look for platforms in > the -/all request, you'll found none. Now, use whichever of the > plugin-specific URLs above and look for platforms and you will find them, > in both URLs. > > I found these URLs by looking at the code in plugins.cordova.io ;-) > > > 2014-07-07 22:13 GMT-05:00 Anis KADRI <[email protected]>: > >> Understood. I pointed you to the URL steve was hitting to perform the >> search. It just happens to be a in a javascript file. It's common CouchDB >> document API http://wiki.apache.org/couchdb/HTTP_Document_API >> >> >> On Mon, Jul 7, 2014 at 8:42 PM, Ray Camden <[email protected]> wrote: >> >> > Not so much concerned with the code part - I'm more concerned about if I >> > should be hitting the URL. :) >> > ________________________________________ >> > From: Anis KADRI <[email protected]> >> > Sent: Monday, July 07, 2014 5:38 PM >> > To: [email protected] >> > Subject: Re: Ajax search API on plugins.cordova.io >> > >> > But if you're looking for search specifically you can take a look at how >> > Steve did it in the plugins site >> > >> > http://goo.gl/pxKE49 >> > >> > >> > On Mon, Jul 7, 2014 at 6:31 PM, Anis KADRI <[email protected]> wrote: >> > >> > > https://github.com/imhotep/npmjs.org should work >> > > >> > > >> > > On Mon, Jul 7, 2014 at 6:13 PM, Ray Camden <[email protected]> wrote: >> > > >> > >> Definitely not CORS enabled from what I can see in the dev tools. But >> > I'm >> > >> calling from Brackets so it shouldn't matter. >> > >> >> > >> ________________________________________ >> > >> From: Parashuram Narasimhan (MS OPEN TECH) <[email protected]> >> > >> Sent: Monday, July 07, 2014 5:00 PM >> > >> To: [email protected] >> > >> Subject: RE: Ajax search API on plugins.cordova.io >> > >> >> > >> Also, is this CORS enabled so that other websites can use this >> official >> > >> API ? >> > >> >> > >> -----Original Message----- >> > >> From: Ray Camden [mailto:[email protected]] >> > >> Sent: Monday, July 7, 2014 2:58 PM >> > >> To: [email protected] >> > >> Subject: Ajax search API on plugins.cordova.io >> > >> >> > >> Is there an "official" API for plugins.cordova.io? >> > >> >> > >> I see I can hit >> > >> >> > >> http://plugins.cordova.io/_list/search/search?startkey=%22dialogs%22&endkey=%22dialogsZZZZZZZZZZZZZZ%22&limit=25 >> > >> and get a response back but is there something more "official" then >> > that? >> > >> >> > > >> > > >> > >> > > > > -- > Victor Adrian Sosa Herrera > IBM Software Engineer > Guadalajara, Jalisco
