Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-9810: Document Connect Root REST API on / #8408

Merged
merged 2 commits into from
Apr 3, 2020

Conversation

kkonstantine
Copy link
Contributor

Document the supported endpoint at the top-level (root) REST API resource and the information that it returns when a request is made to a Connect worker.

Fixes an omission in documentation after KAFKA-2369 and KAFKA-6311 (KIP-238)

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@@ -252,6 +252,12 @@ <h4><a id="connect_rest" href="#connect_rest">REST API</a></h4>
<li><code>PUT /connector-plugins/{connector-type}/config/validate</code> - validate the provided configuration values against the configuration definition. This API performs per config validation, returns suggested values and error messages during validation.</li>
</ul>

<p>Finally, supported REST requests at the top-level endpoint are:</p>
Copy link

@tobydrake7 tobydrake7 Apr 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest: The following is a supported REST request at the top-level (root) endpoint:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a specific reason why you chose to add this as a extra paragraph instead of insert it at the top of the endpoint list in line 231?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@soenkeliebau , yes. I noticed there's a semantic (yet maybe incidental) grouping of the endpoints in groups of /connector/ endpoints, /connector-plugins/ and now /.

To me it seems that, for the time being, this reads better than attaching the missing doc with any of the other groups.

Thanks @tobydrake7. Incorporated.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When reading the previous sections I wondered about that grouping as well. It is not mentioned in the text anywhere and seems to be mostly coincidental.
I wonder whether it might make sense to just pull all of them together?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. But all the endpoints are still under the same paragraph no far apart with each other, and the text reads well. I also like that visually I can distinguish those 3 groups easily, instead of having to scan one by one a long list of endpoints. I'll keep this for this doc bugfix that will backport cleanly and we can return to this doc with another ticket, if that's ok.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely! It was more of an observation and very much boils down to personal preference I believe :)

Copy link

@tobydrake7 tobydrake7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@kkonstantine
Copy link
Contributor Author

Thanks @tobydrake7, @soenkeliebau

Success with JDK11 reveals that there are no formatting errors.
I'll merge and backport this fix.

@kkonstantine kkonstantine merged commit 8595267 into apache:trunk Apr 3, 2020
@kkonstantine kkonstantine deleted the kafka-9810 branch April 3, 2020 20:27
kkonstantine added a commit that referenced this pull request Apr 3, 2020
Document the supported endpoint at the top-level (root) REST API resource and the information that it returns when a request is made to a Connect worker.

Fixes an omission in documentation after KAFKA-2369 and KAFKA-6311 (KIP-238)

Reviewers: Toby Drake <tobydrake7@gmail.com>, Soenke Liebau <soenke.liebau@opencore.com>
kkonstantine added a commit that referenced this pull request Apr 3, 2020
Document the supported endpoint at the top-level (root) REST API resource and the information that it returns when a request is made to a Connect worker.

Fixes an omission in documentation after KAFKA-2369 and KAFKA-6311 (KIP-238)

Reviewers: Toby Drake <tobydrake7@gmail.com>, Soenke Liebau <soenke.liebau@opencore.com>
kkonstantine added a commit that referenced this pull request Apr 3, 2020
Document the supported endpoint at the top-level (root) REST API resource and the information that it returns when a request is made to a Connect worker.

Fixes an omission in documentation after KAFKA-2369 and KAFKA-6311 (KIP-238)

Reviewers: Toby Drake <tobydrake7@gmail.com>, Soenke Liebau <soenke.liebau@opencore.com>
kkonstantine added a commit that referenced this pull request Apr 3, 2020
Document the supported endpoint at the top-level (root) REST API resource and the information that it returns when a request is made to a Connect worker.

Fixes an omission in documentation after KAFKA-2369 and KAFKA-6311 (KIP-238)

Reviewers: Toby Drake <tobydrake7@gmail.com>, Soenke Liebau <soenke.liebau@opencore.com>
kkonstantine added a commit that referenced this pull request Apr 3, 2020
Document the supported endpoint at the top-level (root) REST API resource and the information that it returns when a request is made to a Connect worker.

Fixes an omission in documentation after KAFKA-2369 and KAFKA-6311 (KIP-238)

Reviewers: Toby Drake <tobydrake7@gmail.com>, Soenke Liebau <soenke.liebau@opencore.com>
<p>The following is a supported REST request at the top-level (root) endpoint:</p>

<ul>
<li><code>GET /</code>- return basic information about the Kafka Connect cluster such as the version of the Connect worker that serves the REST request (including git commit ID of the source code) and the Kafka cluster ID that is connected to.
Copy link
Contributor

@soenkeliebau soenkeliebau Apr 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: the other list entries have a whitespace after </code>

Ups, sorry. Overlooked that this is merged already, please disregard :)

qq619618919 pushed a commit to qq619618919/kafka that referenced this pull request May 12, 2020
Document the supported endpoint at the top-level (root) REST API resource and the information that it returns when a request is made to a Connect worker.

Fixes an omission in documentation after KAFKA-2369 and KAFKA-6311 (KIP-238)

Reviewers: Toby Drake <tobydrake7@gmail.com>, Soenke Liebau <soenke.liebau@opencore.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants