cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Victor Sosa <sosah.vic...@gmail.com>
Subject Re: Ajax search API on plugins.cordova.io
Date Tue, 08 Jul 2014 18:16:21 GMT
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 <shazron@gmail.com>:

> 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 <sosah.victor@gmail.com>
> 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 <anis.kadri@gmail.com>:
> >
> >> 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 <raycamde@adobe.com> wrote:
> >>
> >> > Not so much concerned with the code part - I'm more concerned about
> if I
> >> > should be hitting the URL. :)
> >> > ________________________________________
> >> > From: Anis KADRI <anis.kadri@gmail.com>
> >> > 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 <anis.kadri@gmail.com>
> wrote:
> >> >
> >> > > https://github.com/imhotep/npmjs.org should work
> >> > >
> >> > >
> >> > > On Mon, Jul 7, 2014 at 6:13 PM, Ray Camden <raycamde@adobe.com>
> 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) <panarasi@microsoft.com
> >
> >> > >> 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:raycamde@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=%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
>



-- 
Victor Adrian Sosa Herrera
IBM Software Engineer
Guadalajara, Jalisco

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message