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 Riscos, são eles:
1.1 - GET
...
1.1.1 - Get All (Recuperar todos os
...
conectores)
...
Informações |
---|
icon | false |
---|
title | 1.1.1 GetAll |
---|
|
Expandir |
---|
Informações |
---|
icon | false |
---|
title | Configuração |
---|
| Máscara de Url: http://{domínio}:{porta}/api/framework/v1/sodfilerepo/conflictsconnectors |
Informações |
---|
icon | false |
---|
title | Exemplo de Resultado |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"hasNext": false,
"items": [
{
"id": 5,
"companyId": 03,
"name": "Riscogdrive-teste-altoaltered",
"alertIdcompanyId": 5
}0,
{
"id"description": 6,
"Teste Google "companyId": 1Drive altered",
"nametype": "Risco-medio"1,
"alertIdstatus": 3true
},
{
"id": 7],
"companyId"total": 1,
"name": "Risco-medio-baixo",
"alertId": 2
},
{
"id": 9,
"companyId": 1,
} |
|
|
|
|
1.1.2 - GetOne (Recuperar conector pelo Identificador)
...
Informações |
---|
icon | false |
---|
title | 1.1.2 GetOne |
---|
|
Expandir |
---|
Informações |
---|
icon | false |
---|
title | Configuração |
---|
| Máscara de Url: http://{domínio}:{porta}/api/framework/v1/filerepo/connectors/{id} |
Bloco de código |
---|
language | js |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"id": 3,
"name": " Riscogdrive- baixoteste",
"alertId"description": 2
"Teste }Google Drive",
{
"id"type": 10"GoogleDrive",
"companyId"companyID": 1,
"name "global": "Risco-medio-alto"false,
" alertIdsystemCode": 4
},
{
"id"",
"multiSystem": 12true,
" companyIdstatus": 1true,
"name "credentials": " Risco-baixissmodata:application/json;base64,eqrwefasdfas...",
"alertId "filesNumber": 0
}
]
} |
|
|
1.2 - POST
...
1.2.1 -
...
Post (Inserir um conector)
...
Informações |
---|
icon | false |
---|
title | 1.2.1 .2 GetOnePost |
---|
|
Expandir |
---|
Informações |
---|
icon | false |
---|
title | Configuração |
---|
| Máscara de Url: http://{domínio}:{porta}/api/framework/v1/sod/conflicts/{id}filerepo/connectors |
Informações |
---|
icon | false |
---|
title | Exemplo de Entrada |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"Name": "gdrive-teste",
"Description": "Teste Google Drive",
" |
| id20companyIdCompanyID": 1,
"Global": false,
"SystemCode": "",
"MultiSystem": true,
"Status": 1,
"Credentials": "data:application/json;base64,eqrwefasdfas..."
} |
|
|
Informações |
---|
icon | false |
---|
title | Exemplo de Resultado Positivo |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"id": 3,
"name": " |
| Risk-Teste",
"alertIdgdrive-teste",
"description": "Teste Google Drive",
"type": "GoogleDrive",
"companyID": 1,
"global": false,
"systemCode": "",
"multiSystem": true,
"status": true,
"Credentials": "data:application/json;base64,eqrwefasdfas...",
"filesNumber": 0
} |
|
|
|
|
1.
...
3 -
...
PUT
...
1.
...
3.1 -
...
Put (
...
Atualizar um
...
conector)
...
Informações |
---|
icon | false |
---|
title | 1.23.1 PostPut |
---|
|
Expandir |
---|
Informações |
---|
icon | false |
---|
title | Configuração |
---|
| Máscara de Url: http://{domínio}:{porta}/api/framework/v1/sod/conflictsfilerepo/connectors/{id} |
Informações |
---|
icon | false |
---|
title | Exemplo de Entrada |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"companyIdName": 1 "gdrive-teste Alterado",
"nameDescription": "Risk-Teste"Teste Google Drive Alterado",
"Type": 1,
"alertIdCompanyID": 0,
"Status": 1
} |
|
|
Informações |
---|
icon | false |
---|
title | Exemplo de Resultado Positivo |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"id": 203,
"name": "gdrive-teste-altered",
"companyId": 10,
"namedescription": "Risk-TesteTeste Google Drive altered",
"alertId"type": 1,
"status": 0true
} |
|
|
|
|
1.
...
4 -
...
PATCH
...
1.
...
4.1 -
...
Patch (Altera algumas propriedades de um conector)
...
Informações |
---|
icon | false |
---|
title | 1.34.1 PostPatch |
---|
|
Expandir |
---|
title | Clique aqui para expandir... |
---|
| Informações |
---|
icon | false |
---|
title | Configuração |
---|
| Máscara de Url: http http://{domínio}:{porta}/api/framework/v1/usersfilerepo/connectors/{id} Informações |
---|
icon | false |
---|
title | Exemplo de Entrada |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
" | companyId1,
"alertId": 2,
"name": "Risco-"Teste Google Drive Alterado"
} |
|
|
Informações |
---|
icon | false |
---|
title | Exemplo de Resultado Positivo |
---|
| Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
language | js |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true |
---|
| {
"id": | 20 3,
"name": "gdrive-teste-altered",
"companyId": | 1alertId2"Teste Google Drive Alterado",
" | name"Risco-Alterado" |
|
|
|
|
1.
...
5 - DELETE
...
1.
...
5.1 - Delete (Deletar um
...
conector)
...
Informações |
---|
icon | false |
---|
title | 1.45.1 Delete |
---|
|
Expandir |
---|
title | Clique aqui para expandir... |
---|
| Informações |
---|
icon | false |
---|
title | Configuração |
---|
| Máscara de Url: http://{domínio}:{porta}/api/framework/v1/sodfilerepo/conflictsconnectors/{id} Informações |
---|
icon | false |
---|
title | Resultado esperado |
---|
| Será retornado o respondeCode = 204 e a resposta em branco. |
|
|
|