⚪Requisição de Compra
https://host/webservice/v1/requisicao_compra
🟢Listar
{
"qtype" : "requisicao_compra.id",//campo de filtro
"query" : "1",//valor para consultar
"oper" : ">=",//operador da consulta
"page" : "1",//página a ser mostrada
"rp" : "2000",//quantidade de registros por página
"sortname" : "requisicao_compra.id",//campo para ordenar a consulta
"sortorder" : "asc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/requisicao_compra' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"qtype" : "requisicao_compra.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "2000",
"sortname" : "requisicao_compra.id",
"sortorder" : "asc"
}'🟠Inserir
{
"filial_id":"",
"data":"",
"descricao":"",
"funcionario":""
}{
"filial_id": "1",
"data": "2018-05-02",
"necessito_ate": "",
"descricao": "Tetste",
"status": "C",
"status_liberacao_compra": "N",
"funcionario": "2",
"obs": "",
"id_setor": "",
"descricao_cancelamento": "\r\n."
}curl --location 'https://host/webservice/v1/requisicao_compra' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"filial_id": "1",
"data": "2018-05-02",
"necessito_ate": "",
"descricao": "Tetste",
"status": "C",
"status_liberacao_compra": "N",
"funcionario": "2",
"obs": "",
"id_setor": "",
"descricao_cancelamento": "\r\n."
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/requisicao_compra/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"filial_id": "1",
"data": "2018-05-02",
"necessito_ate": "",
"descricao": "Tetste",
"status": "C",
"status_liberacao_compra": "N",
"funcionario": "2",
"obs": "",
"id_setor": "",
"descricao_cancelamento": "\r\n."
}curl --location --request PUT 'https://host/webservice/v1/requisicao_compra/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"filial_id": "1",
"data": "2018-05-02",
"necessito_ate": "",
"descricao": "Tetste",
"status": "C",
"status_liberacao_compra": "N",
"funcionario": "2",
"obs": "",
"id_setor": "",
"descricao_cancelamento": "\r\n."
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/requisicao_compra/5
curl --location --request DELETE 'https://host/webservice/v1/requisicao_compra/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ''Last updated