Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse SmartHome » Install extension via /extensions/url/{url}/install REST API
Install extension via /extensions/url/{url}/install REST API [message #1774396] Fri, 13 October 2017 16:05 Go to next message
Ryan R is currently offline Ryan RFriend
Messages: 1
Registered: October 2017
Junior Member
What is the proper format of the extension URL? I wasn't able to find any docs about this REST endpoint.

We are developing custom hardware and a binding to go with it (not for the public just yet). We would like a way to "deploy" this binding automatically or programmatically to our ESH instances. Currently, we copy and paste the JAR file to the `addons` directory.

Using the REST endpoint /extensions/url/{url}/install seemed like a good solution for this. We have hosted our JAR file on Amazon S3 and we would like to programatically download / install the binding.

I tried the following
http://localhost:8080/rest/extensions/url/s3.amazonaws.com/path/org.eclipse.smarthome.binding.our-binding-0.9.0.b5.jar/install

but it gives the error response
{
  "error": {
    "message": "The given URL is malformed or not valid.",
    "http-code": 400
  }
}


I looked through the [source files](https://github.com/eclipse/smarthome/blob/master/bundles/io/org.eclipse.smarthome.io.rest.core/src/main/java/org/eclipse/smarthome/io/rest/core/internal/extensions/ExtensionResource.java#L163) but didn't find anything jumping out at me regarding URL format.

Any ideas? Is there a better way to distribute our binding file?
Re: Install extension via /extensions/url/{url}/install REST API [message #1774769 is a reply to message #1774396] Thu, 19 October 2017 13:48 Go to previous message
Henning Treu is currently offline Henning TreuFriend
Messages: 44
Registered: April 2017
Member
Hi,

the URL has to be an Eclipse Marketplace URL pointing to a published extension. The REST endpoint is used by PaperUI to allow drag-n-drop from the Eclipse Marketplace. Custom jars are not supported.

Cheers,
Henning
Previous Topic:Error executing maven build and resolving targed-platform
Next Topic:NextPreviousType/UpDownType
Goto Forum:
  


Current Time: Thu Apr 18 11:37:05 GMT 2024

Powered by FUDForum. Page generated in 0.02569 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top