Apps API

The Apps API manages your Fusion apps. To export or import an app, see the Objects API. You can also import an app using the Fusion UI.

Examples

List all configured apps

Input
curl -u user:pass http://localhost:8764/api/apps
Output
[ {
  "id" : "1032724d-848a-4588-9503-c20702aa3a7b",
  "name" : "Test App",
  "properties" : {
    "headerImageName" : "headerImage2",
    "tileColor" : "apps-red"
  }
}, {
  "id" : "7fc4d4e5-d3bd-4b21-b85e-9aa29c47b281",
  "name" : "Movie Search",
  "properties" : {
    "headerImageName" : "headerImage3",
    "tileColor" : "apps-dark"
  }
} ]

Get the configuration for a specific app

Input
curl -u user:pass http://localhost:8764/api/apps/8fc4d4e5-d3bd-4b21-b85e-9aa29c47b281
Output
{
  "id" : "7fc4d4e5-d3bd-4b21-b85e-9aa29c47b281",
  "name" : "Movie Search",
  "properties" : {
    "headerImageName" : "headerImage3",
    "tileColor" : "apps-dark"
  }
}

Create a new app

Input
curl -u user:pass -X POST -H 'Content-type: application/json' -d '{"name":"My new app", "description":"A really great new app"}' http://localhost:8764/api/apps
Output
{
  "id" : "d5c280e2-6fb6-403f-8015-fa4d5e346103",
  "name" : "My new app",
  "description" : "A really great new app"
}