Histórico da Página
...
- Visão Geral
- Definições de Serviços
- POST GET - WSPfsApiWSPfsApi/legaldesk/anexo/download/upload{key}
- GET POST - WSPfsApi WSPfsApi/legaldesk/anexo/download/{key}upload
- Assuntos Relacionados
01. VISÃO GERAL
...
02. DEFINIÇÕES DE SERVIÇOS
a. GET - WSPfsApi/legaldesk/anexo/download/{key}
Parâmetro:
key - Chave do Registro de Anexo (NUM_FILIAL+NUM_COD em base 64)
Exibe o conteúdo do arquivo que foi anexado no Protheus:
| Bloco de código | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
LEGALDESK: TRUE
TENANTID: T1,M SP 01
Content-Type: application/json
|
| Bloco de código | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
Content-Disposition: attachment; filename="arquivo.txt"
Content-Length: 51
Content-Type: Application/octet-stream
{
<arquivo.txt>
} |
Obs: A transferência do arquivo é realizada via octet-stream e attachment conforme o response acima.
b. POST - WSPfsApi/legaldesk/anexo/upload
Recebe os dados do arquivo que será criado na pasta do Protheus, no formato indicado abaixo:
| Bloco de código | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
LEGALDESK: TRUE TENANTID: T1,M SP 01 Accept-Encoding: gzip, deflate, br Connection: keep-alive Content-Type: multipart/form-data; boundary=--------------------------126713368602627514962789 Content-Length: 1149 ----------------------------126713368602627514962789 Content-Disposition: form-data; name=""; filename="arquivo.txt" <arquivo.txt> ----------------------------126713368602627514962789-- |
| Bloco de código | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
{
"result": "Anexo copiado com sucesso."
} |
Obs: A transferência do arquivo deve ser realizada via multipart/form-data conforme o header
...
GET - WSPfsApi/legaldesk/anexo/download/{key}
Parâmetro:
key - Chave do Registro de Anexo (NUM_FILIAL+NUM_COD em base 64)
Exibe o conteúdo do arquivo que foi anexado no Protheus:
| Bloco de código | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
LEGALDESK: TRUE
TENANTID: T1,M SP 01
Content-Type: application/json
|
| Bloco de código | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
Content-Disposition: attachment; filename="arquivo.txt"
Content-Length: 51
Content-Type: Application/octet-stream
{
<arquivo.txt>
} |
...
acima.
03. ASSUNTOS RELACIONADOS
...
Import HTML Content
Visão Geral
Conteúdo das Ferramentas