Projetos
https://host/webservice/v1/df_projeto
🟢Listar
{
"qtype" : "df_projeto.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" : "df_projeto.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/df_projeto' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"qtype" : "df_projeto.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "20",
"sortname" : "df_projeto.id",
"sortorder" : "desc"
}'🟠Inserir
{
"nome":"",
"latitude":"",
"longitude":"",
"zoom":"",
"status":""
} {
"nome": "Projeto Andre-CG",
"id_filial": "0",
"latitude": "-7.264482594498",
"longitude": "-35.922060329889",
"zoom": "16",
"status": "A",
"cor_mapa": "#000000"
}curl --location 'https://host/webservice/v1/df_projeto' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ' {
"nome": "Projeto Andre-CG",
"id_filial": "0",
"latitude": "-7.264482594498",
"longitude": "-35.922060329889",
"zoom": "16",
"status": "A",
"cor_mapa": "#000000"
}'{
"status":"A",//Ativo
"status":"I",//Inativo
}🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/df_projeto/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"nome": "Projeto Andre-CG",
"id_filial": "0",
"latitude": "-7.264482594498",
"longitude": "-35.922060329889",
"zoom": "16",
"status": "A",
"cor_mapa": "#000000"
}curl --location --request PUT 'https://host/webservice/v1/df_projeto/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ' {
"nome": "Projeto Andre-CG",
"id_filial": "0",
"latitude": "-7.264482594498",
"longitude": "-35.922060329889",
"zoom": "16",
"status": "A",
"cor_mapa": "#000000"
}'{
"status":"A",//Ativo
"status":"I",//Inativo
}🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/df_projeto/5
curl --location --request DELETE 'https://host/webservice/v1/df_projeto/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ''Last updated