appdaemon icon indicating copy to clipboard operation
appdaemon copied to clipboard

Subpaths in register_route and register_endpoint

Open Programie opened this issue 7 months ago • 0 comments

Is there an existing feature request for this?

  • [x] I have searched the existing issues

Your feature request

I'm trying to switch from Node-RED to AppDaemon. In Node-RED, it's possible to register HTTP endpoints using the http-in node which accepts any path including path parameters.

ADAPI.register_route() as well as ADAPI.register_endpoint() only seem to support single level routes.

For example, a route with name foo can be accessed using http://ip:port/app/foo (register_route) or http://ip:port/api/appdaemon/foo (register_endpoint). But I would also expect that I could register a route or endpoint like foo/bar which should be accessible via http://ip:port/app/foo/bar (register_route) or http://ip:port/api/appdaemon/foo/bar.

Maybe also supporting path parameters like foo/{name} and including them in the callback would be nice.

Programie avatar Jun 20 '25 14:06 Programie