128 lines
4.4 KiB
YAML
128 lines
4.4 KiB
YAML
info:
|
|
name: "Set Request Status: Register result (OLD)"
|
|
type: http
|
|
seq: 6
|
|
|
|
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?).
|