aniket.g2185
2021-03-12 00:41
```{
"description": "a request to update the existing onboarding application",
"request": {
"method": "PUT",
"path": "/onboarding/applications/1",
"headers": {
"Content-Type": "application/json; charset=UTF-8"
},
"body": {
"fields": [
{
"value": "Alice",
"key": "Name"
}
]
},
"matchingRules": {
"body": {
"$.fields": {
"matchers": [
{
"match": "type"
}
],
"combine": "AND"
},
"$.fields[*].key": {
"matchers": [
{
"match": "type"
}
],
"combine": "AND"
},
"$.fields[*].value": {
"matchers": [
{
"match": "type"
}
],
"combine": "AND"
}
}
},
"generators": {
"path": {
"type": "ProviderState",
"expression": "/onboarding/applications/${uuid}",
"dataType": "STRING"
}
}
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json; charset=UTF-8"
},
"body": {
"channel": "MY_INFO",
"uuid": 1,
"forms": [
{
"name": "Personal Info",
"fields": [
{
"editable": true,
"dataType": "a",
"name": "Name",
"value": "Alice",
"key": "name",
"required": true
}
],
"key": "personalInfo"
}
]
},
"matchingRules": {
"body": {
"$.uuid": {
"matchers": [
{
"match": "type"
}
],
"combine": "AND"
},
"$.forms": {
"matchers": [
{
"match": "type"
}
],
"combine": "AND"
},
"$.forms[*].key": {
"matchers": [
{
"match": "type"
}
],
"combine": "AND"
},
"$.forms[*].name": {
"matchers": [
{
"match": "type"
}
],
"combine": "AND"
},
"$.forms[*].fields": {
"matchers": [
{
"match": "type"
}
],
"combine": "AND"
},
"$.forms[*].fields[*].name": {
"matchers": [
{
"match": "type"
}
],
"combine": "AND"
},
"$.forms[*].fields[*].key": {
"matchers": [
{
"match": "type"
}
],
"combine": "AND"
},
"$.forms[*].fields[*].value": {
"matchers": [
{
"match": "type"
}
],
"combine": "AND"
},
"$.forms[*].fields[*].dataType": {
"matchers": [
{
"match": "regex",
"regex": "[string|enum|date|bool]"
}
],
"combine": "AND"
},
"$.forms[*].fields[*].editable": {
"matchers": [
{
"match": "type"
}
],
"combine": "AND"
},
"$.forms[*].fields[*].required": {
"matchers": [
{
"match": "type"
}
],
"combine": "AND"
}
},
"header": {
"Content-Type": {
"matchers": [
{
"match": "regex",
"regex": "application/json(;\\s?charset=[\\w\\-]+)?"
}
],
"combine": "AND"
}
}
},
"generators": {
"body": {
"$.uuid": {
"type": "ProviderState",
"expression": "uuid",
"dataType": "INTEGER"
},
"$.forms[*].fields[*].dataType": {
"type": "Regex",
"regex": "[string|enum|date|bool]"
}
}
}
},
"providerStates": [
{
"name": "a user whose application is in draft state",
"params": {
"uuid": "1"
}
}
]
}```