Being able to add JSON-Payload to an onUrl and an offUrl of the SimpleHTTPPlugin would be handy.
Being able to use different Request-Types (Get w/o JSON-Payload is already implemented in the SimpleHTTPPlugin) - Post for both a Simple and a JSON-Payload-Variant would be a useful addition)
If fully implemented this would probably result in three new Plugin-Types
JSONGetHTTPPlugin (Get with JSON-Payload)
SimplePostHTTPPlugin (Simple on/off via Post-Request)
JSONPostHTTPPlugin (Post-Request with JSON-Payload)
For the sake of clarity the SimpleHTTPPlugin should probably be renamed (aliased) to SimpleGetHTTPPlugin once this is implemented.
This could also be implemented in a way that the JSON-Payload would be optional for both Get/Post Operations, which means: Only two new Plugins might be needed (depending on how APIs react to JSON-encoded bodys without content).
I would really like to do a PR for all of these, but I am not a Dev.
Edit: OK, I understood that the SimpleCmdPlugin (via curl commands) could be used for JSON-Playloads, nevertheless that would be a cool addition.
Kevin,
If fully implemented this would probably result in three new Plugin-Types
For the sake of clarity the SimpleHTTPPlugin should probably be renamed (aliased) to SimpleGetHTTPPlugin once this is implemented.
This could also be implemented in a way that the JSON-Payload would be optional for both Get/Post Operations, which means: Only two new Plugins might be needed (depending on how APIs react to JSON-encoded bodys without content).
I would really like to do a PR for all of these, but I am not a Dev.
Edit: OK, I understood that the SimpleCmdPlugin (via curl commands) could be used for JSON-Playloads, nevertheless that would be a cool addition.