Entropy Packages HTTP public API

The Entropy part of our website now runs independently from the rest. This is because we’re preparing to completely renew (and change) the CMS at www, hoping, in the long run, to integrate our blog aggregator at planet.sabayon.org with the www/info/news part.During the split, I took time to fix some stuff here and there and add a basic query API.

You can query our repositories using this syntax:

http://packages.sabayon.org/search?q=<search_string>&a=<arch>&t=<search_type>&r=<repository>&b=<branch>&p=<product>&o=<order_by&gt;

<search_string> = the search string (package name, file path, etc), mandatory
<arch> = architecture, either amd64 or x86, default: amd64
<type> = search type, either “pkg” (for package search), “match” (for package matching, >=app-foo/foo-1.2.3), “desc” (for package description search), “file” (for package path search), “lib” (for library [soname] search), default: pkg
<repo> = repository identifier, default: sabayonlinux.org
<branch> = repository branch, default: 5
<product> = entropy repository product, default: standard
<order_by> = order results by “alphabet” (alphabetical), “vote” (…), “downloads” (…), default: alphabet

Moreover, 3 output types are supported (see HTTP GET params below):

  • html (default)
  • &render=json (json output)
  • &render=jsonp (jsonp output)

Don’t try to XSS, it just, won’t work😉.

About lxnay

the creator of Sabayon Linux, Entropy Package Manager {Eit, Equo, Rigo}, Molecule release media buildsystem, Matter Portage buildbot/tinderbox and only God knows what else...

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

hello, twitter

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 585 other followers

del.icio.us

%d bloggers like this: