Repository Configuration

POST /foglamp/repository - Configure the package repository to use for the FogLAMP packages.

Payload

The payload is a JSON document that can have one or two keys defined in the JSON object, url and version. The url item is mandatory and gives the URL of the package repository. This is normally set to the foglamp archives for the foglamp packages.

{
    "url":"http://archives.dianomic.com",
    "version":"latest"
}

Update Packages

PUT /foglamp/update - Update all of the packages within the FogLAMP instance

This call can be used if you have installed some or all of your FogLAMP instance using packages via the package installation process or using the package installer to add extra plugins. It will update all the FogLAMP packages that you have installed to the latest version.

Example

$ curl -X PUT http://localhost:8081/foglamp/update

The call will return immediately and the package update will occur as a background task.