I have a smarttapp, with these REST endpoints:
mappings {
path("/deviceid/:deviceId/command/:command") {
action: [
GET: "invokeCommand"
]
}
path("/devices") {
action: [
GET: "listDevices"
]
}
}
They work. I added one mapping and saved the code, but it does not work:
mappings {
path("/deviceid/:deviceId/command/:command") {
action: [
GET: "invokeCommand"
]
}
path("/devices") {
action: [
GET: "listDevices"
]
}
path("/deviceid/:deviceId/command/:command/value/:value") {
action: [
GET: "invokeCommand"
]
}
}
There are no errors, the only thing I get back when I run curl command is html with this:
We're sorry, but that page doesn't exist.
Like I said the other ones work…
Any ideas?