Mickael Maison created KAFKA-20392:
--------------------------------------

             Summary: Avoid returning multiple types for a single REST endpoint
                 Key: KAFKA-20392
                 URL: https://issues.apache.org/jira/browse/KAFKA-20392
             Project: Kafka
          Issue Type: Improvement
          Components: connect
            Reporter: Mickael Maison


The GET /connectors endpoint can return different types if it's called with or 
without the expand query parameter. It's generally considered bad practice to 
return different types on a single endpoint.

We should avoid this type of behavior and instead have a dedicated endpoints.

My assumption is that this endpoint is primarily used without the query 
parameter so I'd suggest introducing a new endpoint for the expanded output, 
and deprecating the query parameter on the existing endpoint.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to