Clientes Rádio
https://host/webservice/v1/radpop_radio_cliente
🟢Listar
{
"qtype" : "radpop_radio_cliente.id",//campo de filtro
"query" : "1",//valor para consultar
"oper" : ">=",//operador da consulta
"page" : "1",//página a ser mostrada
"rp" : "20",//quantidade de registros por página
"sortname" : "radpop_radio_cliente.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/radpop_radio_cliente' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Mjc6ODk2MGFjYjQ4YWJlY2M4NDcwNmUyYWEzYzQzMTYyODIwYjJjYjQzODViZGY2YWI0NjQ3ZmRjYTM2MTQ0MjA0MA==' \
--data '{
"qtype" : "radpop_radio_cliente.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "20",
"sortname" : "radpop_radio_cliente.id",
"sortorder" : "desc"
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/radpop_radio_cliente/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"id_pop": "0",
"id_pop_radio": "2",
"mac": "80:2A:A8:60:DC:67",
"name": "TESTE",
"sinal": "-70",
"ccq": "0",
"ack": "0",
"noise": "0",
"tx": "65",
"rx": "35",
"airmax_sinal": "0",
"distance": "4.05km",
"airmax_priority": "0",
"airmax_quality": "0",
"airmax_capacity": "0",
"lastip": "192.168.6.124",
"ultima_atualizacao": "2020-10-01 09:00:11",
"interface": "TESTE",
"ap": "",
"wds": "",
"bytes": "",
"uptime": "84118",
"signal_to_noise": "",
"signal_strength_ch0": "",
"signal_strength_ch1": "",
"tx_ccq": "",
"rx_ccq": "",
"nstreme": "",
"routeros_version": "",
"id_pop_radio_porta": "42",
"id_hardware": "3",
"id_radusuarios": "512"
}curl --location --request PUT 'https://shost/webservice/v1/radpop_radio_cliente_fibra/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ' {
"id_pop": "0",
"id_pop_radio": "2",
"mac": "80:2A:A8:60:DC:67",
"name": "TESTE",
"sinal": "-70",
"ccq": "0",
"ack": "0",
"noise": "0",
"tx": "65",
"rx": "35",
"airmax_sinal": "0",
"distance": "4.05km",
"airmax_priority": "0",
"airmax_quality": "0",
"airmax_capacity": "0",
"lastip": "192.168.6.124",
"ultima_atualizacao": "2020-10-01 09:00:11",
"interface": "TESTE",
"ap": "",
"wds": "",
"bytes": "",
"uptime": "84118",
"signal_to_noise": "",
"signal_strength_ch0": "",
"signal_strength_ch1": "",
"tx_ccq": "",
"rx_ccq": "",
"nstreme": "",
"routeros_version": "",
"id_pop_radio_porta": "42",
"id_hardware": "3",
"id_radusuarios": "512"
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/radpop_radio_cliente/5
curl --location --request DELETE 'https://host/webservice/v1/radpop_radio_cliente/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ''Last updated