diff --git a/bruno/collections/elixForms API v2/Console UI/Backoffice - Create Group.yml b/bruno/collections/elixForms API v2/Console UI/Backoffice - Create Group.yml new file mode 100644 index 0000000..f462407 --- /dev/null +++ b/bruno/collections/elixForms API v2/Console UI/Backoffice - Create Group.yml @@ -0,0 +1,251 @@ +info: + name: Backoffice - Create Group + type: http + seq: 9 + +http: + method: POST + url: "{{elixFormsRootUrl}}/backoffice/groups/_savedata.jsp" + headers: + - name: Cookie + value: ISIPSESSION=047b770fac5627c03c94030ca0c3b45c; AJSRV=BTN_USER_1787207482458_8771527838545232265; ISIPSESSION_TRACK=99b2488e73af7c61f6e5affceeb32502; JSESSIONID=e3c44b958c4f282660a5fc8ed994 + disabled: true + - name: x-requested-with + value: XMLHttpRequest + body: + type: multipart-form + data: + - name: id + type: text + value: "0" + description: IMPORTANT! + - name: name + type: text + value: NewGroup01 + - name: name-upper + type: text + value: "" + description: empty + - name: isadmin + type: text + value: "false" + - name: user_visible + type: text + value: "false" + - name: description + type: text + value: NewGroup01 new from API + - name: btnModify + type: text + value: Inserisci + description: ??? + auth: inherit + +runtime: + scripts: + - type: before-request + code: |- + const noCookieFoundError = "No AJSRV cookie found!"; + + var ajsrvCookie = bru.getVar("elixFormsAjsrvCookie"); + + if (ajsrvCookie == null || ajsrvCookie === "") { + console.error(noCookieFoundError, ajsrvCookie); + throw new Error(noCookieFoundError); + } + +settings: + encodeUrl: true + timeout: 0 + followRedirects: true + maxRedirects: 5 + forwardAuthorizationHeader: true + +examples: + - name: example + request: + url: "{{elixFormsRootUrl}}/AJSRV/metadata/save" + method: POST + headers: + - name: Accept + value: "*/*" + - name: Accept-Encoding + value: gzip, deflate, br, zstd + - name: Accept-Language + value: it,it-IT;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6 + disabled: true + - name: Cookie + value: ISIPSESSION=047b770fac5627c03c94030ca0c3b45c; AJSRV=BTN_USER_1787207482458_8771527838545232265; ISIPSESSION_TRACK=99b2488e73af7c61f6e5affceeb32502; JSESSIONID=e3c44b958c4f282660a5fc8ed994 + - name: Host + value: console-unipr.elixforms.it + disabled: true + - name: Referer + value: https://console-unipr.elixforms.it/ajconsole/ + disabled: true + - name: x-requested-with + value: XMLHttpRequest + body: + type: multipart-form + data: + - name: S_616_168008_COL0009 + type: text + value: azione_form_AUTOR_firmaAutorizzazione + response: + status: 200 + statusText: OK + headers: + - name: date + value: Wed, 26 Aug 2026 09:01:46 GMT + - name: server + value: '""' + - name: content-security-policy + value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'; img-src 'self' blob: data: https:;" + - name: content-type + value: application/json;charset=UTF-8 + - name: content-length + value: "1636" + - name: strict-transport-security + value: max-age=31536000; includeSubDomains + - name: x-frame-options + value: SAMEORIGIN + - name: x-xss-protection + value: "1" + - name: x-content-type-options + value: nosniff + - name: referrer-policy + value: unsafe-url + - name: keep-alive + value: timeout=10, max=500 + - name: connection + value: Keep-Alive + body: + type: json + data: |- + { + "errors": { + "objectList": [] + }, + "result": { + "objectList": [ + { + "id": 616, + "title": "WFTemplate", + "dataId": 168008, + "tag": "", + "objectId": 35274, + "sections": [ + { + "title": "Template", + "key": "SEC_0006", + "orderKey": "ORD001", + "fields": [ + { + "type": "STRING", + "key": "COL0014", + "title": "Titolo template", + "searchable": false, + "valueList": [ + { + "key": "", + "value": "Autorizzazione sottodominio" + } + ], + "itemList": null, + "toManyItems": false, + "attributes": [], + "orderKey": "ORD001", + "defaultValue": null, + "required": false + }, + { + "type": "HTML", + "key": "COL0009", + "title": "Template", + "searchable": false, + "valueList": [ + { + "key": "", + "value": "azione_form_AUTOR_firmaAutorizzazione" + } + ], + "itemList": null, + "toManyItems": false, + "attributes": [], + "orderKey": "ORD002", + "defaultValue": null, + "required": false + } + ], + "attributes": [] + }, + { + "title": "Metadata", + "key": "SEC_0007", + "orderKey": "ORD002", + "fields": [ + { + "type": "STRING", + "key": "COL0010", + "title": "Tag azione", + "searchable": false, + "valueList": [ + { + "key": "", + "value": "azione_form_AUTOR_firmaAutorizzazione" + } + ], + "itemList": null, + "toManyItems": false, + "attributes": [], + "orderKey": "ORD001", + "defaultValue": null, + "required": false + }, + { + "type": "STRING", + "key": "COL0011", + "title": "Tag procedimento", + "searchable": false, + "valueList": [ + { + "key": "", + "value": "gestione_siti_web_nuovo_wf" + } + ], + "itemList": null, + "toManyItems": false, + "attributes": [], + "orderKey": "ORD002", + "defaultValue": null, + "required": false + }, + { + "type": "STRING", + "key": "COL0012", + "title": "Tag modulo", + "searchable": false, + "valueList": [ + { + "key": "", + "value": "RequestForm_GESTIONE_SITI_WEB_NUOVO" + } + ], + "itemList": null, + "toManyItems": false, + "attributes": [], + "orderKey": "ORD003", + "defaultValue": null, + "required": false + } + ], + "attributes": [] + } + ], + "categories": [], + "aclTable": [], + "master": false, + "attributes": [] + } + ] + } + } diff --git a/bruno/collections/elixForms API v2/Console UI/Backoffice - Dashboard.yml b/bruno/collections/elixForms API v2/Console UI/Backoffice - Dashboard.yml new file mode 100644 index 0000000..cd8d337 --- /dev/null +++ b/bruno/collections/elixForms API v2/Console UI/Backoffice - Dashboard.yml @@ -0,0 +1,183 @@ +info: + name: Backoffice - Dashboard + type: http + seq: 11 + +http: + method: GET + url: "{{elixFormsRootUrl}}/backoffice/backoffice_console.jsp?IUQOID=0&IURTLGY=&IUXSID=TX_I4453_UNIPR_{{unixTimestamp}}_R{{randomRID}}" + headers: + - name: Host + value: console-unipr.elixforms.it + - name: Referer + value: https://console-unipr.elixforms.it/backoffice/ + params: + - name: IUQOID + value: "0" + type: query + - name: IURTLGY + value: "" + type: query + - name: IUXSID + value: TX_I4453_UNIPR_{{unixTimestamp}}_R{{randomRID}} + type: query + description: Must be computed by executing "Login - Backoffice" + auth: inherit + +runtime: + scripts: + - type: after-response + code: |- + /* + const ajsrvCookie = bru.cookies.get("AJSRV"); + const jsessionidCookie = bru.cookies.get("JSESSIONID"); + + //console.log("AJSRV: ", ajsrvCookie); + //console.log("JSESSIONID: ", jsessionidCookie); + + bru.setVar("elixFormsAjsrvCookie", "AJSRV=" + ajsrvCookie); + bru.setVar("elixFormsJsessionidCookie", "JSESSIONID=" + jsessionidCookie); + */ + - type: tests + code: |- + test("AJSRV cookie found", function () { + const ajsrvCookie = bru.cookies.get("AJSRV"); + expect(ajsrvCookie).to.not.be.null; + expect(ajsrvCookie).to.not.be.empty; + }); + + test("JSESSIONID cookie found", function () { + const jsessionidCookie = bru.cookies.get("JSESSIONID"); + expect(jsessionidCookie).to.not.be.null; + expect(jsessionidCookie).to.not.be.empty; + }); + +settings: + encodeUrl: true + timeout: 0 + followRedirects: true + maxRedirects: 5 + forwardAuthorizationHeader: false + +examples: + - name: example + request: + url: https://console-unipr.elixforms.it/CISIInformationUnit/ExecuteTransaction.jws + method: POST + headers: + - name: Host + value: console-unipr.elixforms.it + - name: Referer + value: https://console-unipr.elixforms.it/backoffice/ + params: + - name: IUXSID + value: TX_I4453_UNIPR_1787737266508_R-1756946974 + type: query + disabled: true + body: + type: multipart-form + data: + - name: username + type: text + value: Automation_User + - name: password + type: text + value: n_HH9shL#VPeiiT^%;:t5/,jY + - name: INSERT_BTN00000 + type: text + value: Accedi + response: + status: 200 + statusText: OK + headers: + - name: date + value: Wed, 26 Aug 2026 10:34:54 GMT + - name: server + value: '""' + - name: content-security-policy + value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'; img-src 'self' blob: data: https:;" + - name: x-powered-by + value: JSP/2.2 + - name: content-type + value: text/html;charset=UTF-8 + - name: set-cookie + value: JSESSIONID=da31f0432559043377f947047c89; Path=/; HttpOnly + - name: vary + value: Accept-Encoding + - name: strict-transport-security + value: max-age=31536000; includeSubDomains + - name: x-frame-options + value: SAMEORIGIN + - name: x-xss-protection + value: "1" + - name: x-content-type-options + value: nosniff + - name: referrer-policy + value: unsafe-url + - name: keep-alive + value: timeout=10, max=500 + - name: connection + value: Keep-Alive + - name: transfer-encoding + value: chunked + body: + type: html + data: |+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
