This commit is contained in:
Daniel Barbero Martin 2022-03-08 14:56:33 +01:00
parent 4f67ec2f22
commit b0d73fa3ff

View File

@ -6,30 +6,35 @@ path = `http://localhost/pandora_console/ajax.php`
- ## Pedir token:
- **data:**
```json
{
page: include/rest-api/index,
doLogin: 1,
id_user: xxxxxx,
password: xxxxx
}
```
- **ejemplo resultado:**
```
ce015de2941dac933621d23d3f32ac5ead8254b7ea3f390494cfcf586d38de27
```
- **data:**
- **ejemplo peticion:**
```
curl "http://localhost/pandora_console/ajax.php?page=include/rest-api/index&doLogin=1&id_user=admin&password=pandora"
```
```json
{
"page": include / rest - api / index,
"doLogin": 1,
"id_user": xxxxxx,
"password": xxxxx
}
```
- **ejemplo resultado:**
```
ce015de2941dac933621d23d3f32ac5ead8254b7ea3f390494cfcf586d38de27
```
- **ejemplo peticion:**
```
curl "http://localhost/pandora_console/ajax.php?page=include/rest-api/index&doLogin=1&id_user=admin&password=pandora"
```
- ## Traer todos los elementos de una CV.
- **data:**
```javascript
{
- **data:**
```javascript
{
page: include/rest-api/index,
id_user: XXX,
getVisualConsoleItems: 1
@ -39,12 +44,13 @@ path = `http://localhost/pandora_console/ajax.php`
height => YYY
],
widthScreen: xxx
}
```
}
```
- **ejemplo resultado:**
```javascript
[
- **ejemplo resultado:**
```javascript
[
{
"aclGroupId":0,
"agentDisabled":false,
@ -85,30 +91,64 @@ path = `http://localhost/pandora_console/ajax.php`
"y":340
}
...
]
```
]
```
- **ejemplo peticion:**
```
curl "http://localhost/pandora_console/ajax.php?page=include/rest-api/index&getVisualConsoleItems=1&auth_hash=ce015de2941dac933621d23d3f32ac5ead8254b7ea3f390494cfcf586d38de27&visualConsoleId=7&id_user=admin"
```
- **ejemplo peticion:**
```
curl "http://localhost/pandora_console/ajax.php?page=include/rest-api/index&getVisualConsoleItems=1&auth_hash=ce015de2941dac933621d23d3f32ac5ead8254b7ea3f390494cfcf586d38de27&visualConsoleId=7&id_user=admin"
```
- ## Traer los datos del propio item.
- **data:**
- **data:**
```javascript
{
page: include/rest-api/index,
,
getVisualConsoleItem: 1,
visualConsoleId: XX,
visualConsoleItemId: XX
}
```
```javascript
{
page: include/rest-api/index,
,
getVisualConsoleItem: 1,
visualConsoleId: XX,
visualConsoleItemId: XX
}
```
- **ejemplo resultado:**
`javascript { "aclGroupId":0, "agentDisabled":false, "cacheExpiration":0, "clockFormat":"time", "clockTimezone":"Europe\/Madrid", "clockTimezoneOffset":3600, "clockType":"digital", "color":"#FFFFFF", "colorStatus":"#B2B2B2", "height":50, "id":212, "isLinkEnabled":true, "isOnTop":false,"label":"", "labelPosition":"down", "link":null, "linkedLayoutId":0, "linkedLayoutNodeId":0, "linkedLayoutStatusType":"default", "moduleDisabled":false, "parentId":0, "showClockTimezone":true, "type":19, "width":100, "x":848, "y":941 }`
- **ejemplo resultado:**
- **ejemplo peticion:**
`curl "http://localhost/pandora_console/ajax.php?page=include/rest-api/index&getVisualConsoleItem=1&auth_hash=ce015de2941dac933621d23d3f32ac5ead8254b7ea3f390494cfcf586d38de27&visualConsoleId=7&visualConsoleItemId=212&id_user=admin"`
```javascript
{
"aclGroupId":0,
"agentDisabled":false,
"cacheExpiration":0,
"clockFormat":"time",
"clockTimezone":"Europe\/Madrid",
"clockTimezoneOffset":3600,
"clockType":"digital",
"color":"#FFFFFF",
"colorStatus":"#B2B2B2",
"height":50,
"id":212,
"isLinkEnabled":true,
"isOnTop":false,
"label":"",
"labelPosition":"down",
"link":null,
"linkedLayoutId":0,
"linkedLayoutNodeId":0,
"linkedLayoutStatusType":"default",
"moduleDisabled":false,
"parentId":0,
"showClockTimezone":true,
"type":19,
"width":100,
"x":848
"y":941
}
```
- **ejemplo peticion:**
```
curl "http://localhost/pandora_console/ajax.php?page=include/rest-api/index&getVisualConsoleItem=1&auth_hash=ce015de2941dac933621d23d3f32ac5ead8254b7ea3f390494cfcf586d38de27&visualConsoleId=7&visualConsoleItemId=212&id_user=admin"
```