POP - ponto de transmissão
https://host/webservice/v1/radpop
🟢Listar
{
"qtype" : "radpop.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.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/radpop' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"qtype" : "radpop.id",
"query" : "1",
"oper" : "=",
"page" : "1",
"rp" : "20",
"sortname" : "radpop.id",
"sortorder" : "desc"
}'🟠Inserir
{
"pop":"",
"id_cidade":""
}{
"pop": "teste",
"id_projeto": "1",
"endereco": "",
"numero": "",
"id_cidade": "4376",
"observacoes": "",
"cep": "",
"id_fornecedor": "0",
"bairro": "",
"latitude": "-27.070582789916",
"longitude": "-52.626366902716",
"abertura": "R",
"numestacao_anatel": "0"
}curl --location 'https://host/webservice/v1/radpop' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"pop": "teste",
"id_projeto": "1",
"endereco": "",
"numero": "",
"id_cidade": "4376",
"observacoes": "",
"cep": "",
"id_fornecedor": "0",
"bairro": "",
"latitude": "-27.070582789916",
"longitude": "-52.626366902716",
"abertura": "R",
"numestacao_anatel": "0"
}'🔵Editar
Deve ser informado o id, a ser editado, na URL:
https://host/webservice/v1/radpop/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"pop": "teste",
"id_projeto": "1",
"endereco": "",
"numero": "",
"id_cidade": "4376",
"observacoes": "",
"cep": "",
"id_fornecedor": "0",
"bairro": "",
"latitude": "-27.070582789916",
"longitude": "-52.626366902716",
"abertura": "R",
"numestacao_anatel": "0"
}curl --location --request PUT 'https://host/webservice/v1/radpop/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"pop": "teste",
"id_projeto": "1",
"endereco": "",
"numero": "",
"id_cidade": "4376",
"observacoes": "",
"cep": "",
"id_fornecedor": "0",
"bairro": "",
"latitude": "-27.070582789916",
"longitude": "-52.626366902716",
"abertura": "R",
"numestacao_anatel": "0"
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL:
https://host/webservice/v1/radpop/5
curl --location --request DELETE 'https://host/webservice/v1/radpop/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ''Last updated