Transmissor interface slot
https://host/webservice/v1/radpop_olt_slot
🟢Listar
{
"qtype" : "radpop_olt_slot.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_olt_slot.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/radpop_olt_slot' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"qtype" : "radpop_olt_slot.id",
"query" : "1",
"oper" : "=",
"page" : "1",
"rp" : "20",
"sortname" : "radpop_olt_slot.id",
"sortorder" : "desc"
}'🟠Inserir
{
"id_transmissor":"",
"numero_slot":"",
"portas":""
}{
"numero_slot": "1",
"descricao": "OLT 4 Pon Vsolution",
"portas": "4",
"id_transmissor": "3"
}curl --location 'https://host/webservice/v1/radpop_olt_slot' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"numero_slot": "1",
"descricao": "OLT 4 Pon Vsolution",
"portas": "4",
"id_transmissor": "3"
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/radpop_olt_slot/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"numero_slot": "1",
"descricao": "OLT 4 Pon Vsolution",
"portas": "4",
"id_transmissor": "3"
}curl --location --request PUT 'https://host/webservice/v1/radpop_olt_slot/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"numero_slot": "1",
"descricao": "OLT 4 Pon Vsolution",
"portas": "4",
"id_transmissor": "3"
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/radpop_olt_slot/5
curl --location --request DELETE 'https://host/webservice/v1/radpop_olt_slot/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ''Last updated