Question
De Volksbank
NL
Last activity: 6 Jun 2018 14:37 EDT
How to configure the below given multipart JSON request for Connect-REST service in PRPC V7.1.7
Sample REQUEST:
POST servicing/v1/custcorres/constituents/received/uploads HTTP/1.1
Content-Type: multipart/form-data; boundary=---------------------------1111111111111111111111111266
Content-Length: 534
----------------------------1111111111111111111111111266
Content-Disposition: form-data; name="file_metadata"
{
"name": "12323",
"document": "ONLINE",
"urn": "URN:AOBN:967456",
"length": "1231",
"timestamp": "2016-09-30T14:30Z",
"scan_ts": "2016-09-30T14:30Z",
"user": "gfga",
"source": "DMhh",
"index_attributes": [{
"keyName": "SnSN",
"value": "12347",
"type": "INT"
}, {
"keyName": "A_O",
"value": "3121",
"type": "STRING"
}]
}
-----------------------------1111111111111111111111111266
Content-Disposition: form-data; name="file_data"; filename="a.html"
Content-Type: text/html
<!DOCTYPE html><title>Content of a.html.</title>
-----------------------------1111111111111111111111111266--
***Updated by moderator: Lochan to add Categories***
Sample REQUEST:
POST servicing/v1/custcorres/constituents/received/uploads HTTP/1.1
Content-Type: multipart/form-data; boundary=---------------------------1111111111111111111111111266
Content-Length: 534
----------------------------1111111111111111111111111266
Content-Disposition: form-data; name="file_metadata"
{
"name": "12323",
"document": "ONLINE",
"urn": "URN:AOBN:967456",
"length": "1231",
"timestamp": "2016-09-30T14:30Z",
"scan_ts": "2016-09-30T14:30Z",
"user": "gfga",
"source": "DMhh",
"index_attributes": [{
"keyName": "SnSN",
"value": "12347",
"type": "INT"
}, {
"keyName": "A_O",
"value": "3121",
"type": "STRING"
}]
}
-----------------------------1111111111111111111111111266
Content-Disposition: form-data; name="file_data"; filename="a.html"
Content-Type: text/html
<!DOCTYPE html><title>Content of a.html.</title>
-----------------------------1111111111111111111111111266--
***Updated by moderator: Lochan to add Categories***