Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

...

POST http://localhost/smartWeb/api/rest/v0/d2/rpc/E.E.SmartWebApiTutorial/TestInOut

Blok kódu
languagejs
titlePríklad volania RPC metódymethod call example
[
  {
    "type": "bool",
    "value": "vTrue",
    "returnAs": "boolParam" // the output value will be named boolParam
  },
  123,
  {
    "type": "real",
    "value": 10.9,
    "returnAs": "realParam", // the output value will be named realParam
    "returnFields": ["ValueTime", "Status"] // attributes ValueTime and Status are required to the output value too
  },
  {
    "type": "time",
    "returnAs": "timeParam" // the output value will be named timeParam
  },
  "hello D2000"
]

...