Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 
- //credentials 
- c: {u: “karel”, p: “x”} 
-  
-}</code> 
- 
-==== Response ==== 
- 
-{ 
- ver : 1,//version 
- code: “ok”, //return code 
- msg: “”, //error message 
-c : {u: “karel”, p:”x”} //must be used for further communication 
-} 
- 
  
  • © Energocentrum Plus, s.r.o. 2017 - 2024