Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:mervis-ide:65-webpanel:webpanel-api [2019/05/21 09:44] m.chlupac |
en:mervis-ide:65-webpanel:webpanel-api [2019/05/21 09:57] m.chlupac |
||
---|---|---|---|
Line 6: | Line 6: | ||
==== Request ==== | ==== Request ==== | ||
+ | |||
+ | **URL:** '' | ||
<code js>{ | <code js>{ | ||
Line 11: | Line 13: | ||
//optional - only for non-authenticated access | //optional - only for non-authenticated access | ||
// | // | ||
- | c: {u: “karel”, p: “x”} | + | c: {u: "karel", p: "x"} |
}</ | }</ | ||
Line 18: | Line 20: | ||
<code js>{ | <code js>{ | ||
ver : 1,//version | ver : 1,//version | ||
- | code: “ok”, //return code | + | code: "ok", //return code |
- | msg: “”, //error message | + | msg: "" |
- | c : {u: “karel”, p:”x”} //must be used for further communication | + | c : {u: "karel", p:"x"} //must be used for further communication |
}</ | }</ | ||
Line 27: | Line 29: | ||
==== Request ==== | ==== Request ==== | ||
- | **URL:**< | + | **URL: |
<code js>{ | <code js>{ | ||
Line 33: | Line 35: | ||
//optional - only for non-authenticated access | //optional - only for non-authenticated access | ||
// | // | ||
- | c: {u: “karel”, p: “x”}, | + | c: {u: "karel", p: "x"}, |
//variable IDs | //variable IDs | ||
- | v: [ “svc:// | + | v: [ "svc:// |
- | “svc:// | + | "svc:// |
}</ | }</ | ||
Line 54: | Line 56: | ||
- converted into POST parameters (jQuery default behaviour):< | - converted into POST parameters (jQuery default behaviour):< | ||
- | The best solution would be to support both versions. Easier is now the JSON string. | ||
==== Response ==== | ==== Response ==== | ||
Line 79: | Line 80: | ||
==== Request ==== | ==== Request ==== | ||
+ | **URL:** '' | ||
<code js>{ | <code js>{ | ||
Line 84: | Line 86: | ||
// | // | ||
// | // | ||
- | c: {u: “karel”, p: “x”}, | + | c: {u: "karel", p: "x"}, |
v: [{ | v: [{ | ||
- | | + | |
// | // | ||
- | | + | |
- | | + | |
- | | + | |
// | // | ||
set: 5, | set: 5, | ||
- | // | + | // |
// | // | ||
- | | + | |
} | } | ||
] | ] | ||
Line 105: | Line 107: | ||
==== Request ==== | ==== Request ==== | ||
+ | |||
+ | **URL:** '' | ||
<code js>{ | <code js>{ | ||
Line 110: | Line 114: | ||
// | // | ||
// | // | ||
- | c: {u: “karel”, p: “x”}, | + | c: {u: "karel", p: "x"}, |
- | v: [ {i:“svc:// | + | v: [ {i:"svc:// |
from: XXXX, | from: XXXX, | ||
to: YYYY | to: YYYY | ||
}, | }, | ||
- | {i:“svc:// | + | {i:"svc:// |
from: XXXX, | from: XXXX, | ||
to: YYYY | to: YYYY | ||
Line 122: | Line 126: | ||
}</ | }</ | ||
+ | ==== Response ==== | ||
- | + | < | |
- | ===== Configuration Response ===== | + | "ver": 1, |
- | + | " | |
- | < | + | " |
- | ver : 1,//version | + | " |
- | | + | " |
- | | + | |
- | | + | " |
- | | + | " |
- | }</ | + | |
- | + | { | |
+ | " | ||
+ | " | ||
+ | | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | | ||
+ | }] | ||
+ | } | ||
+ | </ | ||