RE: Ajax search API on plugins.cordova.io
I may just hit the giant ass JSON, cache it locally for an hour, and use that instead. From: Victor Sosa Sent: Wednesday, July 09, 2014 11:20 AM To: dev@cordova.apache.org Subject: Re: Ajax search API on plugins.cordova.io Seems like you are right, Ray. All I pointed out is that you can do REST calls to registry.cordova.io to retrieve the JSON object of the interested REST query, not a search mechanism like the one you have 2014-07-08 18:50 GMT-05:00 Ray Camden : > Am I right in seeing there isn't a search API then? If not, I'll continue > to hit the URL I was using. > > From: Victor Sosa > Sent: Tuesday, July 08, 2014 8:45 AM > To: dev@cordova.apache.org > Subject: Re: Ajax search API on plugins.cordova.io > > 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. > -- Victor Adrian Sosa Herrera IBM Software Engineer Guadalajara, Jalisco
Re: Ajax search API on plugins.cordova.io
Seems like you are right, Ray. All I pointed out is that you can do REST calls to registry.cordova.io to retrieve the JSON object of the interested REST query, not a search mechanism like the one you have 2014-07-08 18:50 GMT-05:00 Ray Camden : > Am I right in seeing there isn't a search API then? If not, I'll continue > to hit the URL I was using. > > From: Victor Sosa > Sent: Tuesday, July 08, 2014 8:45 AM > To: dev@cordova.apache.org > Subject: Re: Ajax search API on plugins.cordova.io > > 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. > -- Victor Adrian Sosa Herrera IBM Software Engineer Guadalajara, Jalisco
RE: Ajax search API on plugins.cordova.io
Am I right in seeing there isn't a search API then? If not, I'll continue to hit the URL I was using. From: Victor Sosa Sent: Tuesday, July 08, 2014 8:45 AM To: dev@cordova.apache.org Subject: Re: Ajax search API on plugins.cordova.io 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.
Re: Ajax search API on plugins.cordova.io
Hey! good to know :-D I probably should have done a better job describing it then :P Want to see this fixed, so hopefully someone can work on it 2014-07-08 12:12 GMT-05:00 Shazron : > 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 > 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 : > > > >> 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 wrote: > >> > >> > Not so much concerned with the code part - I'm more concerned about > if I > >> > should be hitting the URL. :) > >> > > >> > From: Anis KADRI > >> > Sent: Monday, July 07, 2014 5:38 PM > >> > To: dev@cordova.apache.org > >> > 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 > wrote: > >> > > >> > > https://github.com/imhotep/npmjs.org should work > >> > > > >> > > > >> > > On Mon, Jul 7, 2014 at 6:13 PM, Ray Camden > 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) > > >> > >> Sent: Monday, July 07, 2014 5:00 PM > >> > >> To: dev@cordova.apache.org > >> > >> 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:rayca...@adobe.com] > >> > >> Sent: Monday, July 7, 2014 2:58 PM > >> > >> To: dev@cordova.apache.org > >> > >> 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=%22dialogsZZ%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 > -- Victor Adrian Sosa Herrera IBM Software Engineer Guadalajara, Jalisco
Re: Ajax search API on plugins.cordova.io
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 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 : > >> 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 wrote: >> >> > Not so much concerned with the code part - I'm more concerned about if I >> > should be hitting the URL. :) >> > >> > From: Anis KADRI >> > Sent: Monday, July 07, 2014 5:38 PM >> > To: dev@cordova.apache.org >> > 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 wrote: >> > >> > > https://github.com/imhotep/npmjs.org should work >> > > >> > > >> > > On Mon, Jul 7, 2014 at 6:13 PM, Ray Camden 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) >> > >> Sent: Monday, July 07, 2014 5:00 PM >> > >> To: dev@cordova.apache.org >> > >> 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:rayca...@adobe.com] >> > >> Sent: Monday, July 7, 2014 2:58 PM >> > >> To: dev@cordova.apache.org >> > >> 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=%22dialogsZZ%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
Re: Ajax search API on plugins.cordova.io
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 : > 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 wrote: > > > Not so much concerned with the code part - I'm more concerned about if I > > should be hitting the URL. :) > > > > From: Anis KADRI > > Sent: Monday, July 07, 2014 5:38 PM > > To: dev@cordova.apache.org > > 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 wrote: > > > > > https://github.com/imhotep/npmjs.org should work > > > > > > > > > On Mon, Jul 7, 2014 at 6:13 PM, Ray Camden 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) > > >> Sent: Monday, July 07, 2014 5:00 PM > > >> To: dev@cordova.apache.org > > >> 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:rayca...@adobe.com] > > >> Sent: Monday, July 7, 2014 2:58 PM > > >> To: dev@cordova.apache.org > > >> 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=%22dialogsZZ%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
Re: Ajax search API on plugins.cordova.io
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 wrote: > Not so much concerned with the code part - I'm more concerned about if I > should be hitting the URL. :) > > From: Anis KADRI > Sent: Monday, July 07, 2014 5:38 PM > To: dev@cordova.apache.org > 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 wrote: > > > https://github.com/imhotep/npmjs.org should work > > > > > > On Mon, Jul 7, 2014 at 6:13 PM, Ray Camden 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) > >> Sent: Monday, July 07, 2014 5:00 PM > >> To: dev@cordova.apache.org > >> 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:rayca...@adobe.com] > >> Sent: Monday, July 7, 2014 2:58 PM > >> To: dev@cordova.apache.org > >> 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=%22dialogsZZ%22&limit=25 > >> and get a response back but is there something more "official" then > that? > >> > > > > >
RE: Ajax search API on plugins.cordova.io
Not so much concerned with the code part - I'm more concerned about if I should be hitting the URL. :) From: Anis KADRI Sent: Monday, July 07, 2014 5:38 PM To: dev@cordova.apache.org 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 wrote: > https://github.com/imhotep/npmjs.org should work > > > On Mon, Jul 7, 2014 at 6:13 PM, Ray Camden 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) >> Sent: Monday, July 07, 2014 5:00 PM >> To: dev@cordova.apache.org >> 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:rayca...@adobe.com] >> Sent: Monday, July 7, 2014 2:58 PM >> To: dev@cordova.apache.org >> 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=%22dialogsZZ%22&limit=25 >> and get a response back but is there something more "official" then that? >> > >
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 wrote: > https://github.com/imhotep/npmjs.org should work > > > On Mon, Jul 7, 2014 at 6:13 PM, Ray Camden 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) >> Sent: Monday, July 07, 2014 5:00 PM >> To: dev@cordova.apache.org >> 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:rayca...@adobe.com] >> Sent: Monday, July 7, 2014 2:58 PM >> To: dev@cordova.apache.org >> 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=%22dialogsZZ%22&limit=25 >> and get a response back but is there something more "official" then that? >> > >
Re: Ajax search API on plugins.cordova.io
https://github.com/imhotep/npmjs.org should work On Mon, Jul 7, 2014 at 6:13 PM, Ray Camden 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) > Sent: Monday, July 07, 2014 5:00 PM > To: dev@cordova.apache.org > 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:rayca...@adobe.com] > Sent: Monday, July 7, 2014 2:58 PM > To: dev@cordova.apache.org > 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=%22dialogsZZ%22&limit=25 > and get a response back but is there something more "official" then that? >
RE: Ajax search API on plugins.cordova.io
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) Sent: Monday, July 07, 2014 5:00 PM To: dev@cordova.apache.org 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:rayca...@adobe.com] Sent: Monday, July 7, 2014 2:58 PM To: dev@cordova.apache.org 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=%22dialogsZZ%22&limit=25 and get a response back but is there something more "official" then that?
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:rayca...@adobe.com] Sent: Monday, July 7, 2014 2:58 PM To: dev@cordova.apache.org 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=%22dialogsZZ%22&limit=25 and get a response back but is there something more "official" then that?