- Criado por Karina Dos Santos Costa, última alteração por Adriano Diniz Agrizzi em 02 abr, 2024
Sumário
Objetivo
Esse documento tem o objetivo de exemplificar o uso da API utilizando todos os métodos implementados.
Para mais informações sobre consumo de Licença, Veja Aqui.
1 - Métodos
Serão apresentados 4 métodos, os quais foram implementados na API de Usuários, são eles:
- GET
- POST
- PUT
- DELETE
1.1 - GET
1.1.1 - Get All (Recuperar todas as coligadas)
GetAll
fMáscara de Url: http://{domínio}:{porta}/api/framework/v1/companies/
Exemplo de Configuração
Importante
A partir da versão 12.1.2310, o resultado não é filtrado pelo perfil de segurança do usuário, mantendo o mesmo padrão da MDI, trazendo todas as coligadas.
Exemplo de Resultado
{ "hasNext": false, "items": [ { "id": "1", "code": 1, "nickname": "TOTVS SA", "federalId": "21.867.387/0001-58", "name": "TOTVS SA", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "Belo Horizonte", "state": "MG", "country": "Brasil", "zipCode": "30350-540", "isFluigIntegrated": 0 }, { "id": "6", "code": 6, "nickname": "INSTITUTO TOTVS DE ENSINO SA", "federalId": "25.578.337/0001-01", "name": "INSTITUTO TOTVS DE ENSINO SA", "stateId": "0626103430010", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "BELO HORIZONTE", "state": "MG", "country": "BRASIL", "zipCode": "30350-540", "isFluigIntegrated": 0 }, { "id": "7", "code": 7, "nickname": "INSTITUTO TOTVS DE ENSINO SUPERIOR SA", "federalId": "05.295.401/0001-30", "name": "INSTITUTO TOTVS DE ENSINO SUPERIOR SA", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "BELO HORIZONTE", "state": "MG", "country": "BRASIL", "zipCode": "30350-540", "isFluigIntegrated": 0 }, { "id": "8", "code": 8, "nickname": "Teste", "name": "Teste", "phoneNumber": "dsds", "country": "chile", "isFluigIntegrated": 0 }, { "id": "9", "code": 9, "nickname": "Teste PUT", "federalId": "82.122.163/0001-01", "name": "Teste PUT", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "isFluigIntegrated": 0 }, { "id": "10", "code": 10, "nickname": "Colligada", "federalId": "38.737.259/0001-92", "name": "Coligada", "country": "Brasil", "isFluigIntegrated": 0 }, { "id": "11", "code": 11, "nickname": "Teste coligada", "name": "Teste coligada", "country": "Porto Rico", "isFluigIntegrated": 0 } ] }
1.1.2 - Order (Resultado Ordenado)
Parâmetros
Order: parâmetro responsável pela ordenação do resultado, podendo ser ascendente ou descendente. O resultado com a ordem descendente deve ser precedida do caractere "-" (menos).
Exemplo 1: ?order=campo1 (Ascendente)
Exemplo 2: ?order=-campo1 (Descendente)
Múltiplos campos de ordenação: ?order=[-]campo1, [-]campo2, [-]campo3 ...
Order (Asc)
Máscara de Url: http://{domínio}:{porta}/api/framework/v1/campanies?order={campo}
Exemplo de Configuração
Domínio: localhost
Porta: 8051
Campo: nickname
Tipo de Ordenação: Ascendente
Url Utilizada: http://localhost:8051/api/framework/v1/companies?order=nickname
Exemplo de Resultado
{ "hasNext": false, "items": [ { "id": "10", "code": 10, "nickname": "Colligada", "federalId": "38.737.259/0001-92", "name": "Coligada", "country": "Brasil", "isFluigIntegrated": 0 }, { "id": "6", "code": 6, "nickname": "INSTITUTO TOTVS DE ENSINO SA", "federalId": "25.578.337/0001-01", "name": "INSTITUTO TOTVS DE ENSINO SA", "stateId": "0626103430010", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "BELO HORIZONTE", "state": "MG", "country": "BRASIL", "zipCode": "30350-540", "isFluigIntegrated": 0 }, { "id": "7", "code": 7, "nickname": "INSTITUTO TOTVS DE ENSINO SUPERIOR SA", "federalId": "05.295.401/0001-30", "name": "INSTITUTO TOTVS DE ENSINO SUPERIOR SA", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "BELO HORIZONTE", "state": "MG", "country": "BRASIL", "zipCode": "30350-540", "isFluigIntegrated": 0 }, { "id": "8", "code": 8, "nickname": "Teste", "name": "Teste", "phoneNumber": "dsds", "country": "chile", "isFluigIntegrated": 0 }, { "id": "11", "code": 11, "nickname": "Teste coligada", "name": "Teste coligada", "country": "Porto Rico", "isFluigIntegrated": 0 }, { "id": "9", "code": 9, "nickname": "Teste PUT", "federalId": "82.122.163/0001-01", "name": "Teste PUT", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "isFluigIntegrated": 0 }, { "id": "1", "code": 1, "nickname": "TOTVS SA", "federalId": "21.867.387/0001-58", "name": "TOTVS SA", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "Belo Horizonte", "state": "MG", "country": "Brasil", "zipCode": "30350-540", "isFluigIntegrated": 0 } ] }
Order (Desc)
Máscara de Url: http://{domínio}:{porta}/api/framework/v1/companies?order=[-]{campo}
Exemplo de Configuração
Domínio: localhost
Porta: 8051
Campo: nickname
Tipo de Ordenação: Descendente
Url Utilizada: http://localhost:8051/api/framework/v1/companies?order=-nickname
Exemplo de Resultado
{ "hasNext": false, "items": [ { "id": "1", "code": 1, "nickname": "TOTVS SA", "federalId": "21.867.387/0001-58", "name": "TOTVS SA", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "Belo Horizonte", "state": "MG", "country": "Brasil", "zipCode": "30350-540", "isFluigIntegrated": 0 }, { "id": "9", "code": 9, "nickname": "Teste PUT", "federalId": "82.122.163/0001-01", "name": "Teste PUT", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "isFluigIntegrated": 0 }, { "id": "11", "code": 11, "nickname": "Teste coligada", "name": "Teste coligada", "country": "Porto Rico", "isFluigIntegrated": 0 }, { "id": "8", "code": 8, "nickname": "Teste", "name": "Teste", "phoneNumber": "dsds", "country": "chile", "isFluigIntegrated": 0 }, { "id": "7", "code": 7, "nickname": "INSTITUTO TOTVS DE ENSINO SUPERIOR SA", "federalId": "05.295.401/0001-30", "name": "INSTITUTO TOTVS DE ENSINO SUPERIOR SA", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "BELO HORIZONTE", "state": "MG", "country": "BRASIL", "zipCode": "30350-540", "isFluigIntegrated": 0 }, { "id": "6", "code": 6, "nickname": "INSTITUTO TOTVS DE ENSINO SA", "federalId": "25.578.337/0001-01", "name": "INSTITUTO TOTVS DE ENSINO SA", "stateId": "0626103430010", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "BELO HORIZONTE", "state": "MG", "country": "BRASIL", "zipCode": "30350-540", "isFluigIntegrated": 0 }, { "id": "10", "code": 10, "nickname": "Colligada", "federalId": "38.737.259/0001-92", "name": "Coligada", "country": "Brasil", "isFluigIntegrated": 0 } ] }
1.1.3 - Filter (Resultado filtrado)
Filter
Máscara de Url: http://{domínio}:{porta}/api/framework/v1/campanies?{campo}={valor}
Exemplo de Configuração
Domínio: localhost
Porta: 8051
Campo: state
Valor: MG
Url Utilizada: http://localhost:8051/api/framework/v1/companies?state=MG
Exemplo de Resultado
{ "hasNext": false, "items": [ { "id": "1", "code": 1, "nickname": "TOTVS SA", "federalId": "21.867.387/0001-58", "name": "TOTVS SA", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "Belo Horizonte", "state": "MG", "country": "Brasil", "zipCode": "30350-540", "isFluigIntegrated": 0 }, { "id": "6", "code": 6, "nickname": "INSTITUTO TOTVS DE ENSINO SA", "federalId": "25.578.337/0001-01", "name": "INSTITUTO TOTVS DE ENSINO SA", "stateId": "0626103430010", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "BELO HORIZONTE", "state": "MG", "country": "BRASIL", "zipCode": "30350-540", "isFluigIntegrated": 0 }, { "id": "7", "code": 7, "nickname": "INSTITUTO TOTVS DE ENSINO SUPERIOR SA", "federalId": "05.295.401/0001-30", "name": "INSTITUTO TOTVS DE ENSINO SUPERIOR SA", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "BELO HORIZONTE", "state": "MG", "country": "BRASIL", "zipCode": "30350-540", "isFluigIntegrated": 0 } ] }
1.1.4 - Paginação
Parâmetros
Page: Página que será apresentada.
PageSize: Quantidade máxima de registros por página que serão apresentados.
Exemplo: ?page=valor1&pageSize=1
Valores padrão: Caso não sejam preenchidos os parâmetros evidenciados acima serão preenchidos com valores padrão.
Page: 1
PageSize: 20
Paginação
Máscara de Url: http://{domínio}:{porta}/api/framework/v1/companies?page={valor1}&pageSize={valor2}
Exemplo de Configuração
Domínio: localhost
Porta: 8051
Valor1: 1
Valor2: 2
Url Utilizada: http://localhost:8051/api/framework/v1/companies?page=1&pageSize=2
Exemplo de Resultado
{ "hasNext": true, "items": [ { "id": "1", "code": 1, "nickname": "TOTVS SA", "federalId": "21.867.387/0001-58", "name": "TOTVS SA", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "Belo Horizonte", "state": "MG", "country": "Brasil", "zipCode": "30350-540", "isFluigIntegrated": 0 }, { "id": "6", "code": 6, "nickname": "INSTITUTO TOTVS DE ENSINO SA", "federalId": "25.578.337/0001-01", "name": "INSTITUTO TOTVS DE ENSINO SA", "stateId": "0626103430010", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "BELO HORIZONTE", "state": "MG", "country": "BRASIL", "zipCode": "30350-540", "isFluigIntegrated": 0 } ] }
1.1.5 - Fields (Retorno de campos específicos no resultado)
Parâmetros
Fields: parâmetro responsável pela especialização de campos em um resultado, ou seja, o usuário define quais campos serão apresentados no resultado.
Exemplo: ?fields=campo1
Múltiplos campos de ordenação: ?fields=campo1, campo2, campo3 ...
Fields
Máscara de Url: http://{domínio}:{porta}/api/framework/v1/companies?fields={campos}
Exemplo de Configuração
Domínio: localhost
Porta: 8051
Campo 1: nickname
Campo 2: federalId
Url Utilizada: http://localhost:8051/api/framework/v1/companies?fields=nickname,federalId
Exemplo de Resultado
{ "hasNext": false, "items": [ { "nickname": "TOTVS SA", "federalId": "21.867.387/0001-58" }, { "nickname": "INSTITUTO TOTVS DE ENSINO SA", "federalId": "25.578.337/0001-01" }, { "nickname": "INSTITUTO TOTVS DE ENSINO SUPERIOR SA", "federalId": "05.295.401/0001-30" }, { "nickname": "Teste" }, { "nickname": "Teste PUT", "federalId": "82.122.163/0001-01" }, { "nickname": "Colligada", "federalId": "38.737.259/0001-92" }, { "nickname": "Teste coligada" } ] }
1.1.6 - GetOne (Recuperar coligada pelo identificador)
Parâmetros
Expand: Parâmetro opcional, usado para determinar a(s) propriedade(s) expandables que devem ser retornadas expandidas.
Exemplo: ?expand=roles - Nesse exemplo, os perfis associados ao usuário serão retornados na resposta da requisição.
Valores padrão: Caso não sejam preenchidos todas as propriedades expandables serão retornadas sem serem expandidas.
GetOne
Máscara de Url: http://{domínio}:{porta}/api/framework/v1/companies/{id}
Exemplo de Configuração
Domínio: localhost
Porta: 8099
Id: 00001
Url Utilizada: http://localhost:8051/api/framework/v1/companies/6
Exemplo de Resultado
{ "_expandables": [ "subsidiary" ], "id": "6", "code": 6, "nickname": "INSTITUTO TOTVS DE ENSINO SA", "federalId": "25.578.337/0001-01", "name": "INSTITUTO TOTVS DE ENSINO SA", "stateId": "0626103430010", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "BELO HORIZONTE", "state": "MG", "country": "BRASIL", "zipCode": "30350-540", "imageId": 491, "isRuralProducer": "F", "active": "T", "image": "/9j/4AAQSkZJRgABAQEAAAAAAAD/7gAOQWRvYmUAZAAAAAAB/+IMWElDQ19QUk9GSUxFAAEBAAAMSExpbm8CEAAAbW50clJHQiBYWVogB84AAgAJAAYAMQAAYWNzcE1TRlQAAAAASUVDIHNSR0IAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1IUCAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARY3BydAAAAVAAAAAzZGVzYwAAAYQAAABsd3RwdAAAAfAAAAAUYmtwdAAAAgQAAAAUclhZWgAAAhgAAAAUZ1hZWgAAAiwAAAAUYlhZWgAAAkAAAAAUZG1uZAAAAlQAAABwZG1kZAAAAsQAAACIdnVlZAAAA0wAAACGdmlldwAAA9QAAA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U14qhhsctKWmb8NG7rO2zZcURi9qLa8dEtdtbqzyOhWHIOjdwc34jVFT9slvf7bj9X5lX/BdR00+v/wAv9WTdP+kmSq5SDK55GQsquSSCm1Ue5z0+ar1TgiN7dDl3fUK2rNad/ekuldBvTJGTL3cI/irxDLaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/2Q==" }
GetOne expandable
Máscara de Url: http://{domínio}:{porta}/api/framework/v1/companies/{id}?expand={campo}
Exemplo de Configuração
Domínio: localhost
Porta: 8051
Id: 6
Url Utilizada: http://localhost:8051/api/framework/v1/companies/6?expand=subsidiary
Exemplo de Resultado
{ "_expandables": [ "subsidiary" ], "id": "6", "code": 6, "nickname": "INSTITUTO TOTVS DE ENSINO SA", "federalId": "25.578.337/0001-01", "name": "INSTITUTO TOTVS DE ENSINO SA", "stateId": "0626103430010", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "BELO HORIZONTE", "state": "MG", "country": "BRASIL", "zipCode": "30350-540", "imageId": 491, "isRuralProducer": "F", "active": "T", "image": "/9j/4AAQSkZJRgABAQEAAAAAAAD/7gAOQWRvYmUAZAAAAAAB/+IMWElDQ19QUk9GSUxFAAEBAAAMSExpbm8CEAAAbW50clJHQiBYWVogB84AAgAJAAYAMQAAYWNzcE1TRlQAAAAASUVDIHNSR0IAAAAAAAAAAAAAAAAAAPbWAAEAAAAA0y1IUCAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARY3BydAAAAVAAAAAzZGVzYwAAAYQAA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6ck8T0WN01d7eSSPXXiiuRdF0RdFLFXfYbREzKg36Lu8dprWNYnvieMKX0o2Pf27TtWsm1rL13lRIUVHKyNmqojlThqqqRe/3UZZiK8IWXofTbbaszf2rO51RwW4Mxha0WD5viYbCSyIyTwnKzkcnBdU14qhhsctKWmb8NG7rO2zZcURi9qLa8dEtdtbqzyOhWHIOjdwc34jVFT9slvf7bj9X5lX/BdR00+v/wAv9WTdP+kmSq5SDK55GQsquSSCm1Ue5z0+ar1TgiN7dDl3fUK2rNad/ekuldBvTJGTL3cI/irxDLaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/2Q==", "subsidiary": [ { "code": 12, "name": "ESCOLA EXEMPLO 1", "federalId": "25.578.337/0006-16" }, { "code": 14, "name": "ESCOLA EXEMPLO 2", "federalId": "25.578.337/0003-73" } ] }
1.2 - POST
1.2.1 - Post (Inserir uma Coligada)
Post
Máscara de Url: http://{domínio}:{porta}/api/framework/v1/companies
Exemplo de Configuração
Observação:
Para incluir uma imagem no corpo (Body) na hora de realizar um POST (inclusão de registro), a imagem deve ser informada no formato Array de Byte.
Exemplo de Entrada
{ "id": "12", "code": 12, "nickname": "TOTVS SA CNPJ", "federalId": "19.023.489/0001-45", "name": "TOTVS SA CNPJ", "stateId": "062.307.904/0081", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "Belo Horizonte", "state": "MG", "country": "Brasil", "zipCode": "30494-170", "isRuralProducer": "T", "active": "T", "externalCode": "651465", "isFluigIntegrated": 0 }
Exemplo de Resultado Positivo
{ "id": "testeapiusuario", "meta": { "resourceType": "User", "created": "2018-09-21T16:49:57.336Z", "lastModified": "2018-09-21T16:49:57.336Z" }, "externalId": "0001e", "name": { "givenName": "TesteAPI", "familyName": "Usuário" }, "userName": "testeapiusuario", "phoneNumbers": [ { "value": "31974964158" } ], "emails": [ { "value": "[email protected]", "type": "string", "primary": true } ], "active": true, "groups": [ { "value": "01", "display": "geral" } ], "title": "Mr", "manager": [ { "managerId": "01", "displayName": "Geral" } ] }
Exemplo de Resultado Negativo
{ "Code": "FE006", "Message": "Chave duplicada\r\n\r\nPossíveis causas:\r\n - inclusão de registro cujo valor da chave primária já existe\r\n - inclusão de registro cujo valor do índice único já existe", "DetailMessage": "Violation of PRIMARY KEY constraint 'PKGCOLIGADA'. Cannot insert duplicate key in object 'dbo.GCOLIGADA'. The duplicate key value is (12).\r\nThe statement has been terminated.\r\n\r\nINSERT INTO [GCOLIGADA] ([CODCOLIGADA], [NOMEFANTASIA], [CGC], [NOME], [INSCRICAOESTADUAL], [TELEFONE], [FAX], [EMAIL], [RUA], [NUMERO], [COMPLEMENTO], [BAIRRO], [CIDADE], [ESTADO], [PAIS], [CEP], [CONTROLACGC], [CONTROLE1], [CONTROLE2], [CONTROLE3], [PRODUTORRURAL], [ATIVO], [CODEXTERNO], [IMPORTADA], [IDIMAGEM], [DATALIMITELICENCAS], [RECCREATEDBY], [RECCREATEDON], [RECMODIFIEDBY], [RECMODIFIEDON]) VALUES (12, 'TOTVS SA CNPJ', '19.023.489/0001-45', 'TOTVS SA CNPJ', '062.307.904/0081', '31-21229000', '31-21229155', '[email protected]', 'AVENIDA RAJA GABAGLIA', '2664', '2º ANDAR', 'SANTA LÚCIA', 'Belo Horizonte', 'MG', 'Brasil', '30494-170', , -32479, 4788, 4865, 'T', 'T', '651465', 'F', , null, 'mestre', CONVERT ( DATETIME, CONVERT ( VARCHAR, GETDATE(), 120) ), 'mestre', CONVERT ( DATETIME, CONVERT ( VARCHAR, GETDATE(), 120) ))", "HelpUrl": "", "Details": null }
1.3 - PUT
1.3.1 - Put (Atualizar uma Coligada)
Post
Máscara de Url: http://{domínio}:{porta}/api/framework/v1/companies/{id}
Exemplo de Configuração
Domínio: localhost
Porta: 8051
Id: 12
Url Utilizada: http://localhost:8051/api/framework/v1/companies/12
Exemplo de Entrada
{ "id": "12", "code": 12, "nickname": "TOTVS SA", "federalId": "19.023.489/0001-45", "name": "TOTVS SA", "stateId": "062.307.904/0081", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "Belo Horizonte", "state": "MG", "country": "Brasil", "isRuralProducer": "T", "active": "T", "externalCode": "651465", "isFluigIntegrated": 0 }
Exemplo de Resultado Positivo
{ "id": "12", "code": 12, "nickname": "TOTVS SA", "federalId": "19.023.489/0001-45", "name": "TOTVS SA", "stateId": "062.307.904/0081", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "Belo Horizonte", "state": "MG", "country": "Brasil", "isRuralProducer": "T", "active": "T", "externalCode": "651465", "isFluigIntegrated": 0 }
Exemplo de Resultado Negativo
{ "Code": "FE019", "Message": "O CNPJ, CPF ou CEI utilizado já está cadastrado na base de dados em outra coligada!", "DetailMessage": "", "HelpUrl": "", "Details": null }
1.4 - PATCH
1.4.1 - Patch (Atualização parcial de uma Coligada)
Patch
Máscara de Url: http://{domínio}:{porta}/api/framework/v1/companies/{id}
Exemplo de Configuração
Domínio: localhost
Porta: 8051
Id: 12
Url Utilizada: http://localhost:8051/api/framework/v1/companies/12
Exemplo de Entrada
{ "nickname": "TOTVS SA Teste", "name": "TOTVS SA Teste", "email": "[email protected]", }
Exemplo de Resultado Positivo
{ "id": "12", "code": 12, "nickname": "TOTVS SA Teste", "federalId": "19.023.489/0001-45", "name": "TOTVS SA Teste", "stateId": "062.307.904/0081", "phoneNumber": "31-21229000", "faxNumber": "31-21229155", "email": "[email protected]", "street": "AVENIDA RAJA GABAGLIA", "number": "2664", "complement": "2º ANDAR", "neighborhood": "SANTA LÚCIA", "city": "Belo Horizonte", "state": "MG", "country": "Brasil", "zipCode": "30494-170", "isRuralProducer": "T", "active": "T", "externalCode": "651465", "isFluigIntegrated": 0 }
Exemplo de Resultado Negativo
{ "Code": "FE019", "Message": "O CNPJ, CPF ou CEI utilizado já está cadastrado na base de dados em outra coligada!", "DetailMessage": "", "HelpUrl": "", "Details": null }
1.4 - DELETE
1.4.1 - Delete (Desativa uma Coligada)
Delete
Máscara de Url: http://{domínio}:{porta}/api/framework/v1/companies/{id}
Exemplo de Configuração
Domínio: localhost
Porta: 8051
Id: 12
Url Utilizada: http://localhost:8051/api/framework/v1/companies/12
Exemplo de Configuração
Ao realizar um "DELETE", a coligada não será excluída será somente desativada.
Exemplo de Resultado Positivo Postman
Obs.: Em caso de sucesso, será retornado o respondeCode = 201 e a resposta em branco.
Exemplo de Resultado Negativo
{ "Code": "FE011", "Message": "Registro não encontrado na base de dados.", "DetailMessage": "", "HelpUrl": "", "Details": null }