...
Note also that the URL can contain the special variable "$infinite/". This is replaced at runtime with the URL from which Infinit.e is currently running (eg in the SaaS version, "http://infinite.ikanow.com/api/"). This is particularly useful when using the share API, eg:
Code Block |
---|
|
{
//...
"url": "$infinite/share/get/4d88d0f1f9a624a4b0c8bd71"
//...
}
|
Example
Code Block |
---|
|
#bash> curl -XPOST 'http://infinite.ikanow.com/knowledge/uisetup/modules/install' -d '{
"url": "$infinite/share/get/4d88d0f1f9a624a4b0c8bd71",
"title": "Test widget",
"description: "A widget designed to test some new visualization",
"version": "0.9",
"imageurl": "$infinite/share/get/4d88d0f1f9a624a4b0c8bd72",
"searchterms": [ "test", "visualization" ]
}'
|
...
Info |
---|
The response format is straightforward, and most easily shown with this example: Code Block |
---|
|
{
{
response:
{
action: "Install Module",
success: true,
message: "module installed/updated successfully" // (or the error message if success:false)
},
data:
{
_id: "4d88d0f1f9a624a4b0c8bd71", // The _id of the store, used for updating/deletion
approved: true // Currently hardwired to true, since no approval mechanism currently exists
}
}
|
|