odmarkj commented on issue #5312: URL: https://github.com/apache/pulsar/issues/5312#issuecomment-832130729
Your comments on this thread were pretty verbose in explaining the issue. https://pulsar.apache.org/functions-rest-api/?version=2.7.1&apiversion=v3#operation/registerFunction This documentation does not work as described. It has to be formatted like you mentioned, as two parts with their own content type: --Boundary_1_624637962_1570145452774 Content-Type: text/plain Content-Disposition: form-data; name="url" http://example.com/1.0.1-20191001.001216-48-jar-with-dependencies.jar --Boundary_1_624637962_1570145452774 Content-Type: application/json Content-Disposition: form-data; name="functionConfig" {"tenant":"public","namespace":"default","name":"exampleFunction","className":"com.path.to.class","inputs":["persistent://public/default/exampleInputTopic"],"outputSchemaType":"","userConfig":{},"jar":"http://example.com/1.0.1-20191001.001216-48-jar-with-dependencies.jar"} --Boundary_1_624637962_1570145452774-- -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
