elixForms API v2
- reorg Proposta CCT requests - update requests from Production of Proposta CCT - update templates EFTL code
This commit is contained in:
+51
@@ -0,0 +1,51 @@
|
||||
info:
|
||||
name: Nominativo RS
|
||||
type: http
|
||||
seq: 11
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "37031"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="responsabileScientificoProponenteCompleto" type="string"][% responsabileScientificoProponenteCompleto = ""; %][/VAR]
|
||||
[VAR name="responsabileScientificoQualifica" type="string"][TRIM][TAG]SCHEMAID,341,COL0011,IUQOID, , [/TAG][/TRIM][/VAR]
|
||||
[VAR name="responsabileScientificoNome" type="string"][TRIM][TAG]SCHEMAID,341,COL0012,IUQOID, , [/TAG][/TRIM][/VAR]
|
||||
[VAR name="responsabileScientificoCognome" type="string"][TRIM][TAG]SCHEMAID,341,COL0013,IUQOID, , [/TAG][/TRIM][/VAR]
|
||||
|
||||
[% responsabileScientificoProponenteCompleto = responsabileScientificoQualifica + " " + responsabileScientificoNome + " " + responsabileScientificoCognome; %]
|
||||
|
||||
[%= responsabileScientificoProponenteCompleto %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
forwardAuthorizationHeader: true
|
||||
Reference in New Issue
Block a user