/api/app/com.yourapp.id/
. All endpoints are protected by default, and the requesting user needs permission to your app (which is granted by default after installation). You can override this by setting "public": true
.api.js
. The following route options can be configured in the App Manifest:String
, Array
"GET"
, "POST"
, "PUT"
or "DELETE"
, or an array of these values.String
"/"
, "/:foo"
, "/bar/:foo"
Boolean
false
, set to true
to make this endpoint accessible without a token.getSomething
, addSomething
, updateSomething
and deleteSomething
:api.js
file, this file should export async functions with names that correspond to the names defined in the App Manifest. For example:homey
, params
, query
and body
.homey
is the Homey instance. Using this instance you can, for example, access the App instance.body
is an object with the request body, when your request has method POST
or PUT
. JSON is automatically parsed.params
is a set of strings defined in your path
.query
is a set of strings that are provided as query parameters, for example ?foo=bar
will result in { "foo": "bar" }
.homey:app:<appId>
, for example homey:app:com.athom.example
or homey:app:com.yahoo.weather
.ApiApp
client: