add other collections

This commit is contained in:
2026-02-18 15:04:39 +01:00
parent 2980a31d86
commit 136dc82ab2
136 changed files with 173569 additions and 0 deletions
@@ -0,0 +1,194 @@
info:
name: Contratto IS economico
type: http
seq: 1
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: "8463"
body:
type: json
data: "{\r
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
\ \"userContext\": {\r
\ \"lang\": \"IT\",\r
\ \"docs\": [\r
\ {\r
\ \"name\": \"doc1\",\r
\ \"quantity\": 3,\r
\ \"price\": 123.3\r
\ },\r
\ {\r
\ \"name\": \"doc2\",\r
\ \"quantity\": 5,\r
\ \"price\": 213.3\r
\ },\r
\ {\r
\ \"name\": \"doc3\",\r
\ \"quantity\": 10,\r
\ \"price\": 321.3\r
\ }\r
\ ],\r
\ \"docsAsEntities\": [\r
\ {\r
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
\ \"eftlEntity\": {\r
\ \"name\": \"doc1\",\r
\ \"quantity\": 3,\r
\ \"price\": 123.3\r
\ }\r
\ },\r
\ {\r
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
\ \"eftlEntity\": {\r
\ \"name\": \"doc2\",\r
\ \"quantity\": 5,\r
\ \"price\": 213.3\r
\ }\r
\ },\r
\ {\r
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
\ \"eftlEntity\": {\r
\ \"name\": \"doc3\",\r
\ \"quantity\": 10,\r
\ \"price\": 321.3\r
\ }\r
\ }\r
\ ],\r
\ \"singleEntity\": {\r
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
\ \"eftlEntity\": {\r
\ \"name\": \"doc1\",\r
\ \"quantity\": 3,\r
\ \"price\": 123.3\r
\ }\r
\ },\r
\ \"simpleList\": [\r
\ \"s1\",\r
\ \"s2\",\r
\ \"s3\"\r
\ ],\r
\ \"docsSize\": 3\r
\ }\r
}"
auth: inherit
runtime:
scripts:
- type: before-request
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
var eftlDocumentToBeProcessed = `\r
[EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
[VAR name=\"tipologiaCodice\" type=\"string\"][TAG]GETVALUEBYTAG,TIPOLOGIA_CODICE,REQUEST,IUQOID[/TAG][/VAR]\r
[VAR name=\"isEconomico\" type=\"boolean\"][% isEconomico = true; %][/VAR]\r
[VAR name=\"tipologieNonEconomico\" type=\"iterable\"][SPLIT regex=\";\"][TAG]GETVALUEBYTAG,TIPOLOGIE_NON_ECONOMICO,REQUEST,IUQOID[/TAG][/SPLIT][/VAR]\r
\r
[IF]\r
\ [CONDITION]\r
\ [CONTAINS varname=\"tipologieNonEconomico\"][VALUE_OF varname=\"tipologiaCodice\" /][/CONTAINS]\r
\ [/CONDITION]\r
\ [THEN][% isEconomico = false; %][/THEN]\r
[/IF]\r
\r
[%= isEconomico %]\r
[/EFTL]\r
`;\r
\r
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
\r
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5