add other collections
This commit is contained in:
+143
@@ -0,0 +1,143 @@
|
||||
info:
|
||||
name: Acquisizione istanze elaborate da processo esterno
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl_Default}}/request/:request_id/set-acquired"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
params:
|
||||
- name: request_id
|
||||
value: "7007"
|
||||
type: path
|
||||
body:
|
||||
type: form-urlencoded
|
||||
data:
|
||||
- name: username
|
||||
value: "{{elixFormsApiUsername}}"
|
||||
- name: outcome
|
||||
value: OK
|
||||
description: OK, KO
|
||||
- name: resultCode
|
||||
value: VAL
|
||||
description: 'possibili valori: VAL("Validata"), IMP("Importata"), IMPW("Impostata con warning"), KO("Rifiutata")'
|
||||
- name: resultDescription
|
||||
value: ""
|
||||
description: descrizione esito processo esterno
|
||||
disabled: true
|
||||
- name: resultReceiptId
|
||||
value: "123"
|
||||
description: id pratica processo esterno di riferimento
|
||||
- name: resultTimestamp
|
||||
value: ""
|
||||
description: timestamp di riferimento dell'elaborazione pratica dal processo esterno in formato standard ISO 8601. Se non impostata viene inizializzata con la data/ora server corrente
|
||||
disabled: true
|
||||
- name: properties
|
||||
value: ""
|
||||
description: mappa chiave,valore/i aggiuntivo/i in formato json
|
||||
disabled: true
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
|
||||
examples:
|
||||
- name: Set Request Status - Success
|
||||
request:
|
||||
url: "{{elixFormsApiUrl}}/request/:request_id/set-status/v1"
|
||||
method: POST
|
||||
params:
|
||||
- name: request_id
|
||||
value: "6085"
|
||||
type: path
|
||||
body:
|
||||
type: form-urlencoded
|
||||
data:
|
||||
- name: username
|
||||
value: "{{elixFormsApiUsername}}"
|
||||
- name: requestStatus
|
||||
value: SUBMITTED
|
||||
description: "nuovo stato della request, possibili valori: SUBMITTED, PROCESSED"
|
||||
- name: swfOptionKey
|
||||
value: "1"
|
||||
description: indice del valore associato al SWF che si desidera impostare (???)
|
||||
- name: properties
|
||||
value: '[{"key":"COL0004","value":"cambio stato manuale"},{"key":"COL0002","value":"31-03-2025"}]'
|
||||
description: mappa chiave,valore/i aggiuntivo/i in formato json (url-encoding richiesto in UTF-8)
|
||||
response:
|
||||
statusText: "200"
|
||||
headers:
|
||||
- name: cache-control
|
||||
value: no-cache, no-store, must-revalidate
|
||||
- name: pragma
|
||||
value: no-cache
|
||||
- name: proxy-connection
|
||||
value: Keep-Alive
|
||||
- name: x-content-security-policy
|
||||
value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
|
||||
- name: content-type
|
||||
value: application/json;charset=UTF-8
|
||||
- name: strict-transport-security
|
||||
value: max-age=63072000;includeSubDomains
|
||||
- name: content-security-policy
|
||||
value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'"
|
||||
- name: x-frame-options
|
||||
value: SAMEORIGIN
|
||||
- name: x-xss-protection
|
||||
value: 1;mode=block
|
||||
- name: x-content-type-options
|
||||
value: nosniff
|
||||
- name: referrer-policy
|
||||
value: unsafe-url
|
||||
- name: transfer-encoding
|
||||
value: chunked
|
||||
- name: vary
|
||||
value: Accept-Encoding
|
||||
- name: content-encoding
|
||||
value: gzip
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"value": {
|
||||
"code": "OK",
|
||||
"description": "Report with id 20219 was generated",
|
||||
"complete": true,
|
||||
"globalStatus": "OK",
|
||||
"serviceInformationList": {
|
||||
"serviceInformation": [
|
||||
{
|
||||
"ITSystemName": "EF-CORE",
|
||||
"complete": true,
|
||||
"serviceVersion": "1.0.0",
|
||||
"statusDetailList": {
|
||||
"statusDetail": [
|
||||
{
|
||||
"code": "OK",
|
||||
"description": "Report with id 20219 was generated",
|
||||
"detailStatus": "OK"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"uuid": "a0cb7057-f4ea-4a12-9cb5-23cac7b651fe",
|
||||
"version": "3.7.0.6",
|
||||
"acquiredRequestReceiptId": "20219",
|
||||
"acquiredRequestsSize": 1
|
||||
}
|
||||
}
|
||||
|
||||
docs: |-
|
||||
Viene ritornato l'esito dell'operazione di storicizzazione si elixForms©.
|
||||
La ricezione di "ok" o "ko" provocherà una decisione nel workflow semplice (analogo a quello di elixFlow©) in base a quanto disposto in
|
||||
elixForms per il modulo.
|
||||
Esempio="OK","VAL","..." imposta lo stato di workflow semplice corrispondente imposta lo step ad "evasa" notifica email
|
||||
Esempio="KO","KO","..." imposta lo stato di workflow semplice corrispondente non cambia lo stato dello step
|
||||
@@ -0,0 +1,150 @@
|
||||
info:
|
||||
name: Clone Request
|
||||
type: http
|
||||
seq: 8
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl_Default}}/request/:request_id/clone?username={{elixFormsApiUsername}}"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-api-username
|
||||
value: "{{elixFormsApiUsername}}"
|
||||
params:
|
||||
- name: username
|
||||
value: "{{elixFormsApiUsername}}"
|
||||
type: query
|
||||
- name: request_id
|
||||
value: "7012"
|
||||
type: path
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"clientUsername\": \"MMMPPL74T17E463A\", // string, <(*) username dell'utente che richiede la clonazione>\r
|
||||
|
||||
\ \"cloningReason\": \"Request cloning test\", // string, <(*) motivazione della copia>\r
|
||||
|
||||
\ \"cloningDate\": {{elixRequestCloningDate}}, // dateTime, <(*) data in formato ISO: \"2021-05-18T00:00:00\">\r
|
||||
|
||||
\ \"cloneLogId\": null // number, <generic id dello storico di clonazione eventualmente da aggiornare; se non specificato viene automaticamente generato un nuovo log (Scheda \"RW2 - Clone\")>\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "var currentDate = new Date().toISOString();\r
|
||||
|
||||
\r
|
||||
|
||||
console.log(currentDate);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixRequestCloningDate\", JSON.stringify(currentDate));"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
|
||||
examples:
|
||||
- name: Clone Request - Error
|
||||
request:
|
||||
url: "{{elixFormsApiUrl_Default}}/request/:request_id/clone?username={{elixFormsApiUsername}}"
|
||||
method: POST
|
||||
headers:
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-api-username
|
||||
value: "{{elixFormsApiUsername}}"
|
||||
params:
|
||||
- name: username
|
||||
value: "{{elixFormsApiUsername}}"
|
||||
type: query
|
||||
- name: request_id
|
||||
value: "7007"
|
||||
type: path
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"clientUsername\": \"MMMPPL74T17E463A\", // string, <(*) username dell'utente che richiede la clonazione>\r
|
||||
|
||||
\ \"cloningReason\": \"Request cloning test\", // string, <(*) motivazione della copia>\r
|
||||
|
||||
\ \"cloningDate\": {{elixRequestCloningDate}}, // dateTime, <(*) data in formato ISO: \"2021-05-18T00:00:00\">\r
|
||||
|
||||
\ \"cloneLogId\": null // number, <generic id dello storico di clonazione eventualmente da aggiornare; se non specificato viene automaticamente generato un nuovo log (Scheda \"RW2 - Clone\")>\r
|
||||
|
||||
}"
|
||||
response:
|
||||
statusText: "200"
|
||||
headers:
|
||||
- name: cache-control
|
||||
value: no-cache, no-store, must-revalidate
|
||||
- name: pragma
|
||||
value: no-cache
|
||||
- name: proxy-connection
|
||||
value: Keep-Alive
|
||||
- name: x-content-security-policy
|
||||
value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
|
||||
- name: content-type
|
||||
value: application/json;charset=UTF-8
|
||||
- name: strict-transport-security
|
||||
value: max-age=63072000;includeSubDomains
|
||||
- name: content-security-policy
|
||||
value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'"
|
||||
- name: x-frame-options
|
||||
value: SAMEORIGIN
|
||||
- name: x-xss-protection
|
||||
value: 1;mode=block
|
||||
- name: x-content-type-options
|
||||
value: nosniff
|
||||
- name: referrer-policy
|
||||
value: unsafe-url
|
||||
- name: transfer-encoding
|
||||
value: chunked
|
||||
- name: vary
|
||||
value: Accept-Encoding
|
||||
- name: content-encoding
|
||||
value: gzip
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"value": {
|
||||
"code": "ERROR",
|
||||
"description": "Unmanaged exception thrown. Contact technical support.",
|
||||
"complete": false,
|
||||
"globalStatus": "ERROR",
|
||||
"resultNumber": -1,
|
||||
"serviceInformationList": {
|
||||
"serviceInformation": [
|
||||
{
|
||||
"complete": false,
|
||||
"serviceVersion": "V1",
|
||||
"statusDetailList": {
|
||||
"statusDetail": [
|
||||
{
|
||||
"code": "500",
|
||||
"description": "[Internal Server Error] - IllegalArgumentException: No entity manager defined for named query \"lookupGalleryInfoByMetadataIdAndSchemaField\" of class \"com.anthesi.elixforms.core.entity.multitenancy.upload.GalleryInfoEntity\"",
|
||||
"detailStatus": "ERROR"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"uuid": "472dd247-f034-43c1-9633-32ea5cd5d817",
|
||||
"version": "3.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
docs: La chiamata assume che l'istanza in oggetto non sia in corso di compilazione.
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+124
@@ -0,0 +1,124 @@
|
||||
info:
|
||||
name: Set Request Status (OLD)
|
||||
type: http
|
||||
seq: 2
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl}}/request/:request_id/set-status/v1"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
params:
|
||||
- name: request_id
|
||||
value: "6085"
|
||||
type: path
|
||||
body:
|
||||
type: form-urlencoded
|
||||
data:
|
||||
- name: username
|
||||
value: "{{elixFormsApiUsername}}"
|
||||
- name: requestStatus
|
||||
value: SUBMITTED
|
||||
description: "nuovo stato della request, possibili valori: SUBMITTED, PROCESSED"
|
||||
- name: swfOptionKey
|
||||
value: "1"
|
||||
description: indice del valore associato al SWF che si desidera impostare (???)
|
||||
- name: properties
|
||||
value: '[{"key":"COL0004","value":"cambio stato manuale"},{"key":"COL0002","value":"31-03-2025"}]'
|
||||
description: mappa chiave,valore/i aggiuntivo/i in formato json (url-encoding richiesto in UTF-8)
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
|
||||
examples:
|
||||
- name: Set Request Status - Success
|
||||
request:
|
||||
url: "{{elixFormsApiUrl}}/request/:request_id/set-status/v1"
|
||||
method: POST
|
||||
params:
|
||||
- name: request_id
|
||||
value: "6085"
|
||||
type: path
|
||||
body:
|
||||
type: form-urlencoded
|
||||
data:
|
||||
- name: username
|
||||
value: "{{elixFormsApiUsername}}"
|
||||
- name: requestStatus
|
||||
value: SUBMITTED
|
||||
description: "nuovo stato della request, possibili valori: SUBMITTED, PROCESSED"
|
||||
- name: swfOptionKey
|
||||
value: "1"
|
||||
description: indice del valore associato al SWF che si desidera impostare (???)
|
||||
- name: properties
|
||||
value: '[{"key":"COL0004","value":"cambio stato manuale"},{"key":"COL0002","value":"31-03-2025"}]'
|
||||
description: mappa chiave,valore/i aggiuntivo/i in formato json (url-encoding richiesto in UTF-8)
|
||||
response:
|
||||
statusText: "200"
|
||||
headers:
|
||||
- name: cache-control
|
||||
value: no-cache, no-store, must-revalidate
|
||||
- name: pragma
|
||||
value: no-cache
|
||||
- name: proxy-connection
|
||||
value: Keep-Alive
|
||||
- name: x-content-security-policy
|
||||
value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
|
||||
- name: content-type
|
||||
value: application/json;charset=UTF-8
|
||||
- name: strict-transport-security
|
||||
value: max-age=63072000;includeSubDomains
|
||||
- name: content-security-policy
|
||||
value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'"
|
||||
- name: x-frame-options
|
||||
value: SAMEORIGIN
|
||||
- name: x-xss-protection
|
||||
value: 1;mode=block
|
||||
- name: x-content-type-options
|
||||
value: nosniff
|
||||
- name: referrer-policy
|
||||
value: unsafe-url
|
||||
- name: transfer-encoding
|
||||
value: chunked
|
||||
- name: vary
|
||||
value: Accept-Encoding
|
||||
- name: content-encoding
|
||||
value: gzip
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"value": {
|
||||
"code": "OK",
|
||||
"description": "Report with id 20219 was generated",
|
||||
"complete": true,
|
||||
"globalStatus": "OK",
|
||||
"serviceInformationList": {
|
||||
"serviceInformation": [
|
||||
{
|
||||
"ITSystemName": "EF-CORE",
|
||||
"complete": true,
|
||||
"serviceVersion": "1.0.0",
|
||||
"statusDetailList": {
|
||||
"statusDetail": [
|
||||
{
|
||||
"code": "OK",
|
||||
"description": "Report with id 20219 was generated",
|
||||
"detailStatus": "OK"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"uuid": "a0cb7057-f4ea-4a12-9cb5-23cac7b651fe",
|
||||
"version": "3.7.0.6",
|
||||
"acquiredRequestReceiptId": "20219",
|
||||
"acquiredRequestsSize": 1
|
||||
}
|
||||
}
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
info:
|
||||
name: "Set Request Status: Register result (OLD)"
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl}}/request/:request_id/swf/columns;{{elixRegisterResultColumns}}/v1/?username={{elixFormsApiUsername}}"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
params:
|
||||
- name: username
|
||||
value: "{{elixFormsApiUsername}}"
|
||||
type: query
|
||||
- name: request_id
|
||||
value: "6085"
|
||||
type: path
|
||||
body:
|
||||
type: form-urlencoded
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
|
||||
examples:
|
||||
- name: "Set Request Status: Register result - Success"
|
||||
request:
|
||||
url: "{{elixFormsApiUrl}}/request/:request_id/swf/columns;{{elixRegisterResultColumns}}/v1/?username={{elixFormsApiUsername}}"
|
||||
method: POST
|
||||
params:
|
||||
- name: username
|
||||
value: "{{elixFormsApiUsername}}"
|
||||
type: query
|
||||
- name: request_id
|
||||
value: "6085"
|
||||
type: path
|
||||
body:
|
||||
type: form-urlencoded
|
||||
response:
|
||||
statusText: "200"
|
||||
headers:
|
||||
- name: cache-control
|
||||
value: no-cache, no-store, must-revalidate
|
||||
- name: pragma
|
||||
value: no-cache
|
||||
- name: proxy-connection
|
||||
value: Keep-Alive
|
||||
- name: x-content-security-policy
|
||||
value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
|
||||
- name: content-type
|
||||
value: application/json;charset=UTF-8
|
||||
- name: strict-transport-security
|
||||
value: max-age=63072000;includeSubDomains
|
||||
- name: content-security-policy
|
||||
value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'"
|
||||
- name: x-frame-options
|
||||
value: SAMEORIGIN
|
||||
- name: x-xss-protection
|
||||
value: 1;mode=block
|
||||
- name: x-content-type-options
|
||||
value: nosniff
|
||||
- name: referrer-policy
|
||||
value: unsafe-url
|
||||
- name: transfer-encoding
|
||||
value: chunked
|
||||
- name: vary
|
||||
value: Accept-Encoding
|
||||
- name: content-encoding
|
||||
value: gzip
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"value": {
|
||||
"code": "OK",
|
||||
"description": "Report with id 26507 was generated",
|
||||
"complete": true,
|
||||
"globalStatus": "OK",
|
||||
"serviceInformationList": {
|
||||
"serviceInformation": [
|
||||
{
|
||||
"ITSystemName": "EF-CORE",
|
||||
"complete": true,
|
||||
"serviceVersion": "1.2.0",
|
||||
"statusDetailList": {
|
||||
"statusDetail": [
|
||||
{
|
||||
"code": "OK",
|
||||
"description": "Report with id 26507 was generated",
|
||||
"detailStatus": "OK"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"uuid": "b5cb8917-5aeb-4497-a619-64e3b9d73148",
|
||||
"version": "3.9.2.17",
|
||||
"acquiredRequestReceiptId": "26507",
|
||||
"acquiredRequestsSize": 1
|
||||
}
|
||||
}
|
||||
|
||||
docs: |-
|
||||
The elixRegisterResultColumns variable must be built like the following:
|
||||
|
||||
- one index=value couple for every field in the SWF schema that must be updated, where index is the "name" of the schema field (e.g.: COL0003, if the field is found in the SWF schema) and the value is the string content that must be assigned
|
||||
|
||||
- each couple must be separated by a semi-period (\`;\` character)
|
||||
|
||||
|
||||
For example, suppose the request has a SWF schema with ID 356, containing:
|
||||
|
||||
- State = COL0001
|
||||
|
||||
- Date = COL0002
|
||||
|
||||
- Email = COL0003
|
||||
|
||||
- Message = COL0004
|
||||
|
||||
|
||||
If you want to change the CURRENT state's date and message values, you will put into the variable the following value:
|
||||
|
||||
`COL0002=31-03-2025;COL0004=this is the new message`
|
||||
|
||||
Keep in mind that Postman automatically encodes the parameter, so it's allowed to use spaces and other symbols (maybe?).
|
||||
@@ -0,0 +1,128 @@
|
||||
info:
|
||||
name: Set Request Status
|
||||
type: http
|
||||
seq: 5
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl_Default}}/request/:request_id/set-status"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
params:
|
||||
- name: request_id
|
||||
value: "6085"
|
||||
type: path
|
||||
body:
|
||||
type: form-urlencoded
|
||||
data:
|
||||
- name: username
|
||||
value: "{{elixFormsApiUsername}}"
|
||||
- name: requestStatus
|
||||
value: SUBMITTED
|
||||
description: "nuovo stato della request, possibili valori: SUBMITTED, PROCESSED"
|
||||
- name: swfOptionKey
|
||||
value: "1"
|
||||
description: indice del valore associato al SWF che si desidera impostare
|
||||
- name: properties
|
||||
value: '[{"key":"COL0004","value":"cambio stato manuale"},{"key":"COL0002","value":"31-03-2025"}]'
|
||||
description: mappa chiave,valore/i aggiuntivo/i in formato json (url-encoding richiesto in UTF-8)
|
||||
- name: requestStatusDescription
|
||||
value: ""
|
||||
description: descrizione "human readable" della motivazione del passaggio di stato
|
||||
disabled: true
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
|
||||
examples:
|
||||
- name: Set Request Status - Success
|
||||
request:
|
||||
url: "{{elixFormsApiUrl_Default}}/request/:request_id/set-status"
|
||||
method: POST
|
||||
params:
|
||||
- name: request_id
|
||||
value: "6085"
|
||||
type: path
|
||||
body:
|
||||
type: form-urlencoded
|
||||
data:
|
||||
- name: username
|
||||
value: "{{elixFormsApiUsername}}"
|
||||
- name: requestStatus
|
||||
value: SUBMITTED
|
||||
description: "nuovo stato della request, possibili valori: SUBMITTED, PROCESSED"
|
||||
- name: swfOptionKey
|
||||
value: "1"
|
||||
description: indice del valore associato al SWF che si desidera impostare
|
||||
- name: properties
|
||||
value: '[{"key":"COL0004","value":"cambio stato manuale"},{"key":"COL0002","value":"31-03-2025"}]'
|
||||
description: mappa chiave,valore/i aggiuntivo/i in formato json (url-encoding richiesto in UTF-8)
|
||||
- name: requestStatusDescription
|
||||
value: ""
|
||||
description: descrizione "human readable" della motivazione del passaggio di stato
|
||||
disabled: true
|
||||
response:
|
||||
statusText: "200"
|
||||
headers:
|
||||
- name: cache-control
|
||||
value: no-cache, no-store, must-revalidate
|
||||
- name: pragma
|
||||
value: no-cache
|
||||
- name: proxy-connection
|
||||
value: Keep-Alive
|
||||
- name: x-content-security-policy
|
||||
value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
|
||||
- name: content-type
|
||||
value: application/it.elixforms.api.v1.2+json;charset=UTF-8
|
||||
- name: content-length
|
||||
value: "478"
|
||||
- name: strict-transport-security
|
||||
value: max-age=63072000;includeSubDomains
|
||||
- name: content-security-policy
|
||||
value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'"
|
||||
- name: x-frame-options
|
||||
value: SAMEORIGIN
|
||||
- name: x-xss-protection
|
||||
value: 1;mode=block
|
||||
- name: x-content-type-options
|
||||
value: nosniff
|
||||
- name: referrer-policy
|
||||
value: unsafe-url
|
||||
body:
|
||||
type: text
|
||||
data: |-
|
||||
{
|
||||
"value": {
|
||||
"code": "OK",
|
||||
"description": "Report with id 26880 was generated",
|
||||
"complete": true,
|
||||
"globalStatus": "OK",
|
||||
"serviceInformationList": {
|
||||
"serviceInformation": [
|
||||
{
|
||||
"ITSystemName": "EF-CORE",
|
||||
"complete": true,
|
||||
"serviceVersion": "1.2.0",
|
||||
"statusDetailList": {
|
||||
"statusDetail": [
|
||||
{
|
||||
"code": "OK",
|
||||
"description": "Report with id 26880 was generated",
|
||||
"detailStatus": "OK"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"uuid": "4fb5e314-8765-4a51-8666-20568d50bade",
|
||||
"version": "3.9.2.17",
|
||||
"acquiredRequestReceiptId": "26880",
|
||||
"acquiredRequestsSize": 1
|
||||
}
|
||||
}
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
info:
|
||||
name: Update Request SWF values
|
||||
type: http
|
||||
seq: 6
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{elixFormsApiUrl_Default}}/request/:request_id/swf/columns;{{elixRegisterResultColumns}}?username={{elixFormsApiUsername}}"
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
params:
|
||||
- name: username
|
||||
value: "{{elixFormsApiUsername}}"
|
||||
type: query
|
||||
- name: request_id
|
||||
value: "6085"
|
||||
type: path
|
||||
body:
|
||||
type: form-urlencoded
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
|
||||
examples:
|
||||
- name: Update Request SWF values - Success
|
||||
request:
|
||||
url: "{{elixFormsApiUrl_Default}}/request/:request_id/swf/columns;{{elixRegisterResultColumns}}?username={{elixFormsApiUsername}}"
|
||||
method: POST
|
||||
params:
|
||||
- name: username
|
||||
value: "{{elixFormsApiUsername}}"
|
||||
type: query
|
||||
- name: request_id
|
||||
value: "6085"
|
||||
type: path
|
||||
body:
|
||||
type: form-urlencoded
|
||||
response:
|
||||
statusText: "200"
|
||||
headers:
|
||||
- name: cache-control
|
||||
value: no-cache, no-store, must-revalidate
|
||||
- name: pragma
|
||||
value: no-cache
|
||||
- name: proxy-connection
|
||||
value: Keep-Alive
|
||||
- name: x-content-security-policy
|
||||
value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
|
||||
- name: content-type
|
||||
value: application/it.elixforms.api.v1.2+json;charset=UTF-8
|
||||
- name: content-length
|
||||
value: "478"
|
||||
- name: strict-transport-security
|
||||
value: max-age=63072000;includeSubDomains
|
||||
- name: content-security-policy
|
||||
value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'"
|
||||
- name: x-frame-options
|
||||
value: SAMEORIGIN
|
||||
- name: x-xss-protection
|
||||
value: 1;mode=block
|
||||
- name: x-content-type-options
|
||||
value: nosniff
|
||||
- name: referrer-policy
|
||||
value: unsafe-url
|
||||
body:
|
||||
type: text
|
||||
data: |-
|
||||
{
|
||||
"value": {
|
||||
"code": "OK",
|
||||
"description": "Report with id 26883 was generated",
|
||||
"complete": true,
|
||||
"globalStatus": "OK",
|
||||
"serviceInformationList": {
|
||||
"serviceInformation": [
|
||||
{
|
||||
"ITSystemName": "EF-CORE",
|
||||
"complete": true,
|
||||
"serviceVersion": "1.2.0",
|
||||
"statusDetailList": {
|
||||
"statusDetail": [
|
||||
{
|
||||
"code": "OK",
|
||||
"description": "Report with id 26883 was generated",
|
||||
"detailStatus": "OK"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"uuid": "87845b63-e710-4dff-a37d-cc23229ce6aa",
|
||||
"version": "3.9.2.17",
|
||||
"acquiredRequestReceiptId": "26883",
|
||||
"acquiredRequestsSize": 1
|
||||
}
|
||||
}
|
||||
|
||||
docs: |-
|
||||
The elixRegisterResultColumns variable must be built like the following:
|
||||
|
||||
- one index=value couple for every field in the SWF schema that must be updated, where index is the "name" of the schema field (e.g.: COL0003, if the field is found in the SWF schema) and the value is the string content that must be assigned
|
||||
|
||||
- each couple must be separated by a semi-period (\`;\` character)
|
||||
|
||||
|
||||
For example, suppose the request has a SWF schema with ID 356, containing:
|
||||
|
||||
- State = COL0001
|
||||
|
||||
- Date = COL0002
|
||||
|
||||
- Email = COL0003
|
||||
|
||||
- Message = COL0004
|
||||
|
||||
|
||||
If you want to change the CURRENT state's date and message values, you will put into the variable the following value:
|
||||
|
||||
`COL0002=31-03-2025;COL0004=this is the new message`
|
||||
|
||||
Keep in mind that Postman automatically encodes the parameter, so it's allowed to use spaces and other symbols (maybe?).
|
||||
@@ -0,0 +1,7 @@
|
||||
info:
|
||||
name: Cambio stato e/o integrazione
|
||||
type: folder
|
||||
seq: 7
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
Reference in New Issue
Block a user