httpSample.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "about": {
  3. "author": {
  4. "name": "EMQ",
  5. "email": "contact@emqx.io",
  6. "company": "EMQ Technologies Co., Ltd",
  7. "website": "https://www.emqx.io"
  8. },
  9. "helpUrl": {
  10. "en_US": "https://github.com/lf-edge/ekuiper/blob/master/docs/en_US/plugins/functions/functions.md",
  11. "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/plugins/functions/functions.md"
  12. },
  13. "description": {
  14. "en_US": "Sample external services for http options",
  15. "zh_CN": "示例外部函数配置,用于测试http选项"
  16. }
  17. },
  18. "interfaces": {
  19. "bookshelf": {
  20. "address": "http://localhost:51234/bookshelf",
  21. "protocol": "rest",
  22. "options": {
  23. "insecureSkipVerify": true,
  24. "headers": {
  25. "Accept-Charset": "utf-8"
  26. }
  27. },
  28. "schemaType": "protobuf",
  29. "schemaFile": "http_bookstore.proto",
  30. "functions": [
  31. {
  32. "name": "createBook",
  33. "serviceName": "CreateBook"
  34. }
  35. ]
  36. },
  37. "messaging": {
  38. "address": "http://localhost:51234/messaging",
  39. "protocol": "rest",
  40. "schemaType": "protobuf",
  41. "schemaFile": "http_messaging.proto"
  42. }
  43. }
  44. }