Summary
Find the diff of two config strings.
Description
Find the diff of two config strings.
Route
POST /mop/diff
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
value_a |
string |
yes |
First string to compare. |
value_b |
string |
yes |
Second string to compare. |
Copied to Clipboard
{
"value_a": "any string",
"value_b": "other string"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"value_a": {
"title": "value_a",
"type": "string",
"examples": [
"any string"
]
},
"value_b": {
"title": "value_b",
"type": "string",
"examples": [
"other string"
]
}
},
"required": [
"value_a",
"value_b"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
array |
Result of the diff. |
Copied to Clipboard
[
[
{
"count": 1,
"value": "example string\n"
},
{
"count": 2,
"removed": true,
"value": "example string\nextra added line"
}
]
]
Copied to Clipboard
{
"title": "result",
"type": "array",
"items": {
"type": "object",
"properties": {
"count": {
"type": "number"
},
"value": {
"type": "string"
},
"added": {
"type": "boolean"
},
"removed": {
"type": "boolean"
}
}
},
"examples": [
[
[
{
"count": 1,
"value": "example string\n"
},
{
"count": 2,
"removed": true,
"value": "example string\nextra added line"
}
]
]
]
}