Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

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 Riscos, são eles:

...

Informações
iconfalse
title1.1.2 GetOne
Expandir
Informações
iconfalse
titleConfiguração

Máscara de Url: http://{domínio}:{porta}/api/framework/v1/filerepo/connectors/{id}

Informações
iconfalse
titleExemplo de Configuração

Domínio: localhost

Porta: 8051

Id: 3

Url Utilizada: http://localhost:8051/api/framework/v1/filerepo/connectors/3

Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "id": 3,
     "name": "gdrive-teste-altered",
    "companyId": 0,
    "description": "Teste Google Drive altered",
    "type": 1,
    "status": true
}

1.2 - POST

1.2.1 - Post (Inserir um conflito)

Informações
iconfalse
title1.2.1 Post
Expandir
Informações
iconfalse
titleConfiguração

Máscara de Url: http://{domínio}:{porta}/api/framework/v1/filerepo/connectors

Informações
iconfalse
titleExemplo de Configuração

Domínio: localhost

Porta: 8051

Url Utilizada: http://localhost:8051/api/framework/v1/filerepo/connectors

{ "Name": "gdrive-teste"
GoogleDrive",
    "
Description
companyID": 
"Teste Google Drive"
1,
"Type
	"global": 
"GoogleDrive"
false,
    "
CompanyID": 1, "SystemCode"
systemCode": "",
"Status": 0 }{ "id": 3
	"multiSystem": true,
    "
name
status": 
"gdrive-teste"
true,
"companyId
	"credentials":
1,
 
"
description": "Teste Google Drive", "type": 1, "status": false
data:application/json;base64,eqrwefasdfas...",
	"filesNumber": 0
}
Informações
iconfalse
titleExemplo de Entrada
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
Informações
iconfalse
titleExemplo de Resultado Positivo
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue


1.

...

2 -

...

POST

...

1.

...

2.1 -

...

Post (

...

Inserir um conector)

...

Informações
iconfalse
title1.32.1 Post
Expandir
Informações
iconfalse
titleConfiguração

Máscara de Url: http://{domínio}:{porta}/api/framework/v1/filerepo/connectors/{id}

Informações
iconfalse
titleExemplo de Configuração

Domínio: localhost

Porta: 8051Id: 3

Url Utilizada: http://localhost:8051/api/framework/v1/filerepo/connectors/3

Informações
iconfalse
titleExemplo de Entrada
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "Name": "gdrive-teste Alterado",
    "Description": "Teste Google Drive Alterado",
    "Type": 1"GoogleDrive",
    "CompanyID": 01,
    "Status	"Global": 1
}
Informações
icon
false
titleExemplo de Resultado Positivo
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "id": 3,
    "nameSystemCode": "gdrive-teste-altered",
    "companyId	"MultiSystem": 0true,
    "descriptionStatus": "Teste Google Drive altered"1,
    "type	"Credentials": 1,
    "status": true
}
Informações
iconfalse
title1.1.1 GetAll
Expandir
Informações
iconfalse
titleConfiguração

Máscara de Url: http://{domínio}:{porta}/api/framework/v1/filerepo/connectors

Informações
iconfalse
titleExemplo de Configuração

Domínio: localhost

Porta: 8051

Url Utilizada: http://localhost:8051/api/framework/v1/filerepo/connectors
"data:application/json;base64,eqrwefasdfas..."
}
Informações
iconfalse
titleExemplo de Resultado Positivo
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "hasNext": false,
    "items": [
        {
            "id": 3,
              "name": "gdrive-teste-altered",
            "companyId": 0,
            "description": "Teste Google Drive altered",
            "type": 1,
            "status": true
        }
    ]"GoogleDrive",
    "total": 1
}

1.1.2 - GetOne (Recuperar conector pelo Identificador)

Informações
iconfalse
title1.1.2 GetOne
Expandir
Informações
iconfalse
titleConfiguração

Máscara de Url: http://{domínio}:{porta}/api/framework/v1/filerepo/connectors/{id}

Informações
iconfalse
titleExemplo de Configuração

Domínio: localhost

Porta: 8051

Id: 3

Url Utilizada: http://localhost:8051/api/framework/v1/filerepo/connectors/3

Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
Informações
iconfalse
title1.2.1 Post
Expandir
Informações
iconfalse
titleConfiguração

Máscara de Url: http://{domínio}:{porta}/api/framework/v1/filerepo/connectors

Informações
iconfalse
titleExemplo de Configuração

Domínio: localhost

Porta: 8051

Url Utilizada: http://localhost:8051/api/framework/v1/filerepo/connectors

Informações
iconfalse
titleExemplo de Entrada
{ "id": 3, "name": "gdrive-teste-altered"
companyID": 1,
	"global": false,
    "
companyId": 0, "description
systemCode": "
Teste Google Drive altered
",
"type
	"multiSystem": 
1
true,
    "status": 
true }

1.2 - POST

1.2.1 - Post (Inserir um conflito)

Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumbers
true
{
    "Name": "gdrive-teste",
    "Description,
	"Credentials": "Teste Google Drive",
    "Type": "GoogleDrive",
    "CompanyID": 1,
    "SystemCode": "",
    "Status": 0
}
Informações
iconfalse
titleExemplo de Resultado Positivo
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "id": 3,
    "name": "gdrive-teste",
    "companyId": 1,
    "description": "Teste Google Drive",
    "type": 1,
    "status": false
data:application/json;base64,eqrwefasdfas...",
	"filesNumber": 0
}

1.3 - PUT

...

1.3.1 - Put (Atualizar um conector)

...

Informações
iconfalse
title1.3.1 PostPut
Expandir
Informações
iconfalse
titleConfiguração

Máscara de Url: http://{domínio}:{porta}/api/framework/v1/filerepo/connectors/{id}

Informações
iconfalse
titleExemplo de Configuração

Domínio: localhost

Porta: 8051

Id: 3

Url Utilizada: http://localhost:8051/api/framework/v1/filerepo/connectors/3

Informações
iconfalse
titleExemplo de Entrada
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "Name": "gdrive-teste Alterado",
    "Description": "Teste Google Drive Alterado",
    "Type": 1,
    "CompanyID": 0,
    "Status": 1
}
Informações
iconfalse
titleExemplo de Resultado Positivo
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "id": 3,
    "name": "gdrive-teste-altered",
    "companyId": 0,
    "description": "Teste Google Drive altered",
    "type": 1,
    "status": true
}

...

Informações
iconfalse
title1.4.1 DeletePatch
Expandir
titleClique aqui para expandir...
Informações
iconfalse
titleConfiguração

Máscara de Url: http://{domínio}:{porta}/api/framework/v1/filerepo/connectors/{id}

Informações
iconfalse
titleExemplo de Configuração

Domínio: localhost

Porta: 8051

Id: 3

Url Utilizada: http://localhost:8051/api/framework/v1/filerepo/connectors/3

Informações
iconfalse
titleExemplo de Entrada
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "Description": "Teste Google Drive Alterado"
}
Informações
iconfalse
titleExemplo de Resultado Positivo
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "id": 3,
    "name": "gdrive-teste-altered",
    "companyId": 0,
    "description": "Teste Google Drive Alterado",
    "type": 1,
    "status": true
}

...

Informações
iconfalse
title1.45.1 Delete
Expandir
titleClique aqui para expandir...
Informações
iconfalse
titleConfiguração

Máscara de Url: http://{domínio}:{porta}/api/framework/v1/filerepo/connectors/{id}

Informações
iconfalse
titleExemplo de Configuração

Domínio: localhost

Porta: 8051

Id: 3

Url Utilizada: http://localhost:8051/api/framework/v1/filerepo/connectors/3

Informações
iconfalse
titleResultado esperado

Será retornado o respondeCode = 204 e a resposta em branco.