Differences
This shows you the differences between two versions of the page.
en:mervis-ide:65-webpanel:webpanel-api [2017/06/21 11:01] m.chlupac |
en:mervis-ide:65-webpanel:webpanel-api [2019/05/21 11:13] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Webpanel API ====== | ||
- | |||
- | Communication is based on HTTP protocol. Clients send HTTP POST request and get the response depending on the request. Each request must specify the credentials in case the credentials are specified for the project. | ||
- | |||
- | ===== Login ===== | ||
- | |||
- | ==== Request ==== | ||
- | |||
- | Data: | ||
- | <code js>{ | ||
- | ver : 1,//version | ||
- | //optional - only for non-authenticated access | ||
- | // | ||
- | c: {u: “karel”, | ||
- | |||
- | }</ | ||
- | |||
- | ==== Response ==== | ||
- | |||
- | { | ||
- | ver : 1,//version | ||
- | code: “ok”, //return code | ||
- | msg: “”, //error message | ||
- | c : {u: “karel”, | ||
- | } | ||
- | |||