iGRPIGRP 3.0Documentation

Anexos

Carregar e descarregar os anexos de um envio.

Carregar anexo

POST
/api/v1/attachments

Permissão: igrp.notification.send. Multipart (parte file). O contentRef devolvido vai em attachments no envio.

Autorização

bearer-jwt
headerAutorizaçãoBearer <token>

Token do Access Management. Os envios são M2M (client_credentials); a inbox usa o token do utilizador.

Corpo do pedido

multipart/form-data
  1. body
file*file
Formatobinary

Corpo da resposta

OK

*/*
  1. response
id?string
Formatouuid
contentRef?string
filename?string
mimeType?string
sizeBytes?integer
Formatoint64
checksum?string
curl -X POST 'http://localhost:2575/gateway-api/igrp-notification-service/api/v1/attachments' \  -F 'file=string'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "contentRef": "string",  "filename": "string",  "mimeType": "string",  "sizeBytes": 0,  "checksum": "string"}

Descarregar anexo

GET
/api/v1/attachments/{id}

Permissão: igrp.notification.read.

Autorização

bearer-jwt
headerAutorizaçãoBearer <token>

Token do Access Management. Os envios são M2M (client_credentials); a inbox usa o token do utilizador.

Parâmetros de caminho

id*string
Formatouuid

Parâmetros de query

applicationCode?string

Corpo da resposta

OK

response?file*/*
Formatobinary
curl -X GET 'http://localhost:2575/gateway-api/igrp-notification-service/api/v1/attachments/497f6eca-6276-4993-bfeb-53cbbbba6f08'
"string"
How is this guide?

Última atualização: