Exporting a Losant Application allows users to share their applications with users outside of their organization easily. All of the export files are human-readable, which makes it easy to use things like Git to independently version control your Losant Applications.
But whatβs in a Losant Export?
Hereβs whatβs inside
.
βββ README.md
βββ application.yaml
βββ dashboards
β βββ Generator_Details.yaml
β βββ Overview.yaml
βββ dataTables
β βββ warnings_and_alarms.csv
β βββ warnings_and_alarms.yaml
βββ deviceRecipes.yaml
βββ devices.yaml
βββ experience
β βββ develop
β β βββ components
β β β βββ component-device-list.hbs
β β β βββ components.yaml
β β β βββ css-templates.hbs
β β βββ endpoints.yaml
β β βββ layouts
β β β βββ layout-dashboard-page.hbs
β β β βββ layouts.yaml
β β βββ pages
β β β βββ page-dashboard-device.hbs
β β β βββ page-dashboard-overview.hbs
β β β βββ page-login.hbs
β β β βββ pages.yaml
β β βββ version.yaml
β β βββ workflows
β β βββ Workflow_-_GET__.yaml
β β βββ Workflow_-_GET__logout.yaml
β β βββ Workflow_-_POST__login.yaml
β βββ groups.yaml
β βββ users.yaml
βββ files
β βββ device-images
β β βββ rd05034.png
β βββ favicon.ico
β βββ kanarra-logo-small.png
β βββ kanarra-logo-stacked.png
β βββ reset.css
βββ workflows
βββ Simulate_Devices.yaml
The exported files are human-readable in YAML format, which makes the files not only easy to version control, but also easy to read, understand, and edit.
You can edit these files in the text editor of your choice and edit them! But letβs say that you would like to import just the Workflows from this exportβ¦
You can just remove everything but the workflows
folder (and itβs contents), re-zip the folder, and upload that zipped file to Losant for what we call a βpartialβ import. Your folder would look like this:
βββ README.md
βββ application.yaml
βββ workflows
βββ Conditionals.yaml
βββ Email_Node_Example.yaml
βββ Simulate_Devices.yaml
Once imported into Losant, everything will be the same, but the updated workflows will be there!
All exported YAML files, except file resources, will always have two keys: resourceType
and resources
. If you do not have any resources of a specific type, that file will not be exported.
Have you edited Application files before? What have you been using Application Exporting or Importing for?