Skip to content
Discussion options

You must be logged in to vote

Hi @trya2l,

Here is an example of RPC configuration for POST request:

    {
      "deviceNameFilter": ".*",
      "methodFilter": "post_test",
      "requestUrlExpression": "/",
      "responseTimeout": 1,
      "httpMethod": "POST",
      "requestValueExpression": "${params}",
      "responseValueExpression": "${message}",
      "timeout": 0.5,
      "tries": 3,
      "httpHeaders": {
        "Content-Type": "application/json"
      }
    },

Data from params from request will be send as body to the server, message field from response will be parsed and returned as a result.

Server respond to the request with the following body:

{
  "message": "Hello World"
}

Request sending:

Probably in…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@trya2l
Comment options

Answer selected by imbeacon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants