...
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 |
---|
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": "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 |
---|
|
Expandir |
---|
Informações |
---|
icon | false |
---|
title | Configuração |
---|
| Máscara de Url: http://{domínio}:{porta}/api/framework/v1/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"GoogleDrive",
" DescriptioncompanyID": "Teste Google Drive"1,
"Type "global": "GoogleDrive"false,
" CompanyID": 1,
"SystemCode"systemCode": "",
"Status": 0
} 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 "multiSystem": true,
" namestatus": "gdrive-teste"true,
"companyId "credentials": 1,
" description": "Teste Google Drive",
"type": 1,
"status": falsedata:application/json;base64,eqrwefasdfas...",
"filesNumber": 0
}
|
|
1.
...
2 -
...
POST
...
1.
...
2.1 -
...
Post (
...
Inserir um conector)
...
Informações |
---|
icon | false |
---|
title | 1.32.1 Post |
---|
|
Expandir |
---|
Informações |
---|
icon | false |
---|
title | Configuração |
---|
| Máscara de Url: http://{domínio}:{porta}/api/framework/v1/filerepo/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 |
---|
| {
"Name": "gdrive-teste Alterado",
"Description": "Teste Google Drive Alterado",
"Type": 1"GoogleDrive",
"CompanyID": 01,
"Status "Global": 1
} |
|
| Informações |
---|
icon | |
---|
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,
"nameSystemCode": "gdrive-teste-altered",
"companyId "MultiSystem": 0true,
"descriptionStatus": "Teste Google Drive altered"1,
"type "Credentials": 1,
"status": true
} |
|
|
|
|
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/filerepo/connectors |
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 |
---|
| {
"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 |
---|
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 |
---|
|
|
|
Informações |
---|
|
Expandir |
---|
Informações |
---|
icon | false |
---|
title | Configuração |
---|
| Máscara de Url: http://{domínio}:{porta}/api/framework/v1/filerepo/connectors |
Informações |
---|
icon | false |
---|
title | Exemplo de Entrada |
---|
| {
"id": 3,
"name": "gdrive-teste-altered"companyID": 1,
"global": false,
" |
| companyId": 0,
"descriptionTeste Google Drive altered "type1true
} |
|
|
1.2 - POST
1.2.1 - Post (Inserir um conflito)
Expandir |
---|
title | Ver resultado JSON... |
---|
| Bloco de código |
---|
|
language | js |
---|
firstline | 1 |
---|
title | Resultado (JSON) |
---|
linenumbers | true | {
"Name": "gdrive-teste",
"Description,
"Credentials": "Teste Google Drive",
"Type": "GoogleDrive",
"CompanyID": 1,
"SystemCode": "",
"Status": 0
} |
|
| 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": "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 |
---|
icon | false |
---|
title | 1.3.1 PostPut |
---|
|
Expandir |
---|
Informações |
---|
icon | false |
---|
title | Configuração |
---|
| Máscara de Url: http://{domínio}:{porta}/api/framework/v1/filerepo/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 |
---|
| {
"Name": "gdrive-teste Alterado",
"Description": "Teste Google Drive Alterado",
"Type": 1,
"CompanyID": 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": 3,
"name": "gdrive-teste-altered",
"companyId": 0,
"description": "Teste Google Drive altered",
"type": 1,
"status": true
} |
|
|
|
|
...
Informações |
---|
icon | false |
---|
title | 1.4.1 DeletePatch |
---|
|
Expandir |
---|
title | Clique aqui para expandir... |
---|
| Informações |
---|
icon | false |
---|
title | Configuração |
---|
| Máscara de Url: http://{domínio}:{porta}/api/framework/v1/filerepo/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 |
---|
| {
"Description": "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": 3,
"name": "gdrive-teste-altered",
"companyId": 0,
"description": "Teste Google Drive Alterado",
"type": 1,
"status": true
} |
|
|
|
|
|
...
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/filerepo/connectors/{id} Informações |
---|
icon | false |
---|
title | Resultado esperado |
---|
| Será retornado o respondeCode = 204 e a resposta em branco. |
|
|
|