Ocorrências/Soluções
https://host/webservice/v1/radpop_ocorrencias
🟢Listar
{
"qtype" : "radpop_ocorrencias.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_ocorrencias.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/radpop_ocorrencias' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"qtype" : "radpop_ocorrencias.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "20",
"sortname" : "radpop_ocorrencias.id",
"sortorder" : "desc"
}'🟠Inserir
{
"transmissor":"",
"data":"",
"problema":""
}{
"data": "2024-02-26",
"transmissor": "1",
"problema": "teste",
"solucao": ""
}curl --location 'https://host/webservice/v1/radpop_ocorrencias' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"data": "2024-02-26",
"transmissor": "1",
"problema": "teste",
"solucao": ""
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/radpop_ocorrencias/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"data": "2024-02-26",
"transmissor": "1",
"problema": "teste",
"solucao": ""
}curl --location --request PUT 'https://host/webservice/v1/radpop_ocorrencias/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"data": "2024-02-26",
"transmissor": "1",
"problema": "teste",
"solucao": ""
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/radpop_ocorrencias/5
curl --location --request DELETE 'https://host/webservice/v1/radpop_ocorrencias/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ''Last updated