Resposta de grupo
https://host/webservice/v1/radgroupreply
🟢Listar
{
"qtype" : "radgroupreply.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" : "radgroupreply.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/radgroupreply' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"qtype" : "radgroupreply.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "20",
"sortname" : "radgroupreply.id",
"sortorder" : "desc"
}'🟠Inserir
{
"groupname":"",
"attribute":"",
"op":"",
"value":""
}{
"id_plano": "122",
"groupname": "100MB_NAATIVA_WIFI",
"attribute": "Acct-Interim-Interval",
"op": "=",
"value": "1200",
"prio": "1"
}curl --location 'https://host/webservice/v1/radgroupreply' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"id_plano": "122",
"groupname": "100MB_NAATIVA_WIFI",
"attribute": "Acct-Interim-Interval",
"op": "=",
"value": "1200",
"prio": "1"
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/radgroupreply/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"id_plano": "122",
"groupname": "100MB_NAATIVA_WIFI",
"attribute": "Acct-Interim-Interval",
"op": "=",
"value": "1200",
"prio": "1"
}curl --location --request PUT 'https://host/webservice/v1/radgroupreply/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"id_plano": "122",
"groupname": "100MB_NAATIVA_WIFI",
"attribute": "Acct-Interim-Interval",
"op": "=",
"value": "1200",
"prio": "1"
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/radgroupreply/5
curl --location --request DELETE 'https://host/webservice/v1/radgroupreply/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ''Last updated