API
Package management
Manage packages.
List packages
New
This function list packages.
$ curl -i http://oasis.ocamlcore.org/dev/api/0.1/sexp/pkg/list (((pkg_name oasis) (pkg_watch ())) ((pkg_name ocaml-data-notation) (pkg_watch ())) ((pkg_name ocamlify) (pkg_watch ())))
$ curl -i http://oasis.ocamlcore.org/dev/api/0.1/json/pkg/list
[
{ "pkg_name": "oasis", "pkg_watch": null },
{ "pkg_name": "ocaml-data-notation", "pkg_watch": null },
{ "pkg_name": "ocamlify", "pkg_watch": null }
]
Package's version management
Manage package's version.
Display package's version information
New
Display information about a package, as defined during the upload step. You could also extract information from the _oasis file.
$ curl -i http://oasis.ocamlcore.org/dev/api/0.1/sexp/pkg_ver/show?ver=0.2.0&pkg=oasis ((pkg oasis) (ver 0.2.0) (ord 10) (tarball oasis-0.2.0.tar.gz) (upload_date "2013-04-27 09:05:38") (upload_method (Web gildor)) (publink (https://forge.ocamlcore.org/frs/download.php/501/oasis-0.2.0.tar.gz)))
$ curl -i http://oasis.ocamlcore.org/dev/api/0.1/json/pkg_ver/show?ver=0.2.0&pkg=oasis
{
"pkg": "oasis",
"ver": "0.2.0",
"ord": 10,
"tarball": "oasis-0.2.0.tar.gz",
"upload_date": "2013-04-27 09:05:38",
"upload_method": { "type": "Web", "name": "gildor" },
"publink":
"https://forge.ocamlcore.org/frs/download.php/501/oasis-0.2.0.tar.gz"
}
Get the latest version of a package.
New
Return the latest version available. The latest version is defined by order and not by the version number.
$ curl -i http://oasis.ocamlcore.org/dev/api/0.1/sexp/pkg_ver/latest?pkg=oasis 0.2.0
$ curl -i http://oasis.ocamlcore.org/dev/api/0.1/json/pkg_ver/latest?pkg=oasis "0.2.0"
List versions of a package.
New
This function list package's versions.
$ curl -i http://oasis.ocamlcore.org/dev/api/0.1/sexp/pkg_ver/list?pkg=oasis (0.1.0 0.2.0)
$ curl -i http://oasis.ocamlcore.org/dev/api/0.1/json/pkg_ver/list?pkg=oasis [ "0.1.0", "0.2.0" ]

