You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/10/08 17:04:04 UTC
[GitHub] [pulsar] devinbost commented on issue #5312: Function REST API
documentation is insufficient for Create POST action
devinbost commented on issue #5312: Function REST API documentation is insufficient for Create POST action
URL: https://github.com/apache/pulsar/issues/5312#issuecomment-539609478
Here's additional detail that I get from Wireshark on the content of the `multipart/form-data` message:
```
POST /admin/v3/functions/public/default/exampleFunction HTTP/1.1
Accept: application/json
Content-Type: multipart/form-data;boundary=Boundary_1_624637962_1570145452774
MIME-Version: 1.0
content-length: 623
host: localhost:8080
user-agent: Pulsar-Java-v2.4.0
--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:
users@infra.apache.org
With regards,
Apache Git Services