⚪Veículos - Rastreamento
https://host/webservice/v1/veiculos_tracker/5
🟢Listar
{
"qtype" : "veiculos_tracker.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" : "veiculos_tracker.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/veiculos_tracker' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=vkld052nm6do0grh1d8a1nat2d' \
--data '{
"qtype" : "veiculos_tracker.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "20",
"sortname" : "veiculos_tracker.id",
"sortorder" : "desc"
}'🟠Inserir
{
"rastreador":"",
"lastupdate":""
}{
"rastreador": "",
"latitude": "",
"longitude": "",
"speed": "",
"gps_time": "DD/MM/AAAA 00:00:00",
"lastupdate": "DD/MM/AAAA 00:00:00"
}curl --location --request GET 'https://host/webservice/v1/veiculos_tracker' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=vkld052nm6do0grh1d8a1nat2d' \
--data '{
"rastreador": "",
"latitude": "",
"longitude": "",
"speed": "",
"gps_time": "DD/MM/AAAA 00:00:00",
"lastupdate": "DD/MM/AAAA 00:00:00"
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/veiculos_tracker/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"rastreador": "",
"latitude": "",
"longitude": "",
"speed": "",
"gps_time": "DD/MM/AAAA 00:00:00",
"lastupdate": "DD/MM/AAAA 00:00:00"
}curl --location --request PUT 'https://host/webservice/v1/veiculos_tracker/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=vkld052nm6do0grh1d8a1nat2d' \
--data '{
"rastreador": "",
"latitude": "",
"longitude": "",
"speed": "",
"gps_time": "DD/MM/AAAA 00:00:00",
"lastupdate": "DD/MM/AAAA 00:00:00"
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/veiculos_tracker/5
curl --location --request DELETE 'https://host/webservice/v1/veiculos_tracker/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=vkld052nm6do0grh1d8a1nat2d' \
--data ''Last updated