Usuários
https://host/webservice/v1/auth_usuarios
🟢Listar
{
"qtype" : "auth_usuarios.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" : "auth_usuarios.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/auth_usuarios' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"qtype" : "auth_usuarios.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "20",
"sortname" : "auth_usuarios.id",
"sortorder" : "desc"
}'🟠Inserir
Nenhum campo é obrigatório!{
"grupo_usuarios": "full",
"descricao": "teste",
"login": "root",
"senha": "aa02ddb9666b571eb9b99b0a0ad01ead",
"opcao": "ssh"
}curl --location 'https://host/webservice/v1/auth_usuarios' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"grupo_usuarios": "full",
"descricao": "teste",
"login": "root",
"senha": "aa02ddb9666b571eb9b99b0a0ad01ead",
"opcao": "ssh"
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/auth_usuarios/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"grupo_usuarios": "full",
"descricao": "teste",
"login": "root",
"senha": "aa02ddb9666b571eb9b99b0a0ad01ead",
"opcao": "ssh"
}curl --location --request PUT 'https://host/webservice/v1/auth_usuarios/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"grupo_usuarios": "full",
"descricao": "teste",
"login": "root",
"senha": "aa02ddb9666b571eb9b99b0a0ad01ead",
"opcao": "ssh"
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/auth_usuarios/5
curl --location --request DELETE 'https://host/webservice/v1/auth_usuarios/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ''Last updated