Closed estilles closed 2 years ago
This would allow for a very speedy duplication of buttons, to make slight variants of a button.
This is now in conflict due to #11. Can you please resolve in the refactor, noting that PATCH and DELETE commands were added. Thx
@krocheck ... Thanks. Will Do.
FYI ... I just checked out #11 (to see what I need to resolve) and it seems it adds the PATCH/DELETE functionality to the action handler, but it doesn't add the actual actions.
Do you want me to go ahead and add them as well?
https://github.com/bitfocus/companion-module-generic-http/blob/master/index.js#L69-L133
ugh… yes please. good catch!
Hey @krocheck ... I just realized a ran prettier (force of habit) and it reformatted the entire file. I kinda prefer the prettier formatted version anyway. Are you okay with that?
@krocheck ... should I remove the prettier
fixes?
no, its fine. I'm making the rounds to here in a bit
@estilles can you check me on that change I just pushed pls
@estilles can you check me on that change I just pushed pls
Nice! I likes! Thanks @krocheck
Enable the
http: GET
,http: PUT
andhttp: POST
actions to accept custom variables within theURI
,Body(JSON)
andheader input(JSON)
options.I've also refactored/simplified the instance
action
method.Usage example:
Resolves #12 Signed-off-by: Johnny Estilles johnny@estilles.com