Open turnerrainer opened 1 year ago
sample input for /rasa/regex/update
{
"regex_name": "asukoht",
"input": {
"regex": "asukoht",
"examples": [
"abja[- ]paluoja",
"[Aa]ntsla",
"elva",
"haapsalu"
]
}
}
As per @ExiRain suggestion, the current solution should be re-written to only overwrite the values that are currently selected to be changed, instead of overwriting the whole content of the file.
Working, but could be optimized. In Acceptance Testing
but should be refactored later.
BUG - Unable to add regexes.
Unable to add regex examples.
Blocked because of #325. When adding new regex examples is possible, then we are able to test updating.
Seems to work as intended!
AS AN Architect I WANT TO have a REST service to update an existing Rasa regex example SO THAT there wouldn't be any duplicate services for it
Acceptance Criteria
/rasa/regex/update-example
to update a new Rasa regex exampledata/regex_nlu.yml
as inputregex
Examples
data/regex_nlu.yml
Input
Output after making a request to update "antsla" to "[Aa]ntsla" within entity "asukoht"