...
In addition to above methods, OPTIONS method could be also used.
Responce Response to OPTIONS request includes auto-generated WADL, e.g.:
...
Add configuration parameter:
- rest.wadl.enable with default the default value of 'true', and with the importance of 'low'.
Update org.apache.kafka.connect.runtime.rest.RestServer to respect the configuration property described above.
With rest.wadl.enable=true, responce response to OPTIONS method should have list of supported HTTP methods only, e.g.:
...
Add more unit tests under org.apache.kafka.connect.runtime.rest.RestServerTest, asserting on responceresponse's Content-type.
Compatibility, Deprecation, and Migration Plan
Since the default value of the new configuration parameter is 'true', the change should be backward compatible, no action is required for upgrading from older versions.
...
- Disable exposure of WADL without an option to keep exposing it. Some users might rely upon it.