0

I'm currently working on a Spring Boot application where I need to create a service endpoint similar to the one mentioned in the Confluent Cloud documentation (link).

The cURL example provided in the documentation is as follows:

curl -X POST -H "Content-Type: application/json"  -H  \
"Authorization: Basic <BASE64-encoded-key-and-secret>” \
"https://<REST-endpoint>/kafka/v3/clusters/<cluster-id>/topics/<topic-name>/records" -d \
'{"value": {"type": "BINARY", "data": "<base64-encoded-data>"}} {"value": {"type": "BINARY", "data": "<base64-encoded-data>"}}'

Could anyone guide me on how to create the Spring Boot controller that can accept a batch of records and effectively access the data from within the controller?

Your assistance would be greatly appreciated. Thank you!

0 Answers0