Open Kristjan259 opened 11 months ago
AS AN Architect I WANT TO have a REST service to add new examples into regexes SO THAT there wouldn't be any duplicate services for it
/rasa/regexes/add-example
regex
Sample input to /data/regex/asukoht_nlu.yml
/data/regex/asukoht_nlu.yml
Example of request body:
{ "regex": "asukoht", "example": "tartu" }
The /data/regex/asukoht_nlu.yml before adding:
version: "3.0" nlu: - regex: asukoht examples: | - abja[- ]paluoja - antsla - elva - haapsalu
The /data/regex/asukoht_nlu.yml after adding:
version: "3.0" nlu: - regex: asukoht examples: | - abja[- ]paluoja - antsla - elva - haapsalu - tartu
Pull Request.
Seems to work as intended!
AS AN Architect I WANT TO have a REST service to add new examples into regexes SO THAT there wouldn't be any duplicate services for it
Acceptance Criteria
/rasa/regexes/add-example
to add a new Rasa example to a givenregex
Examples
Sample input to
/data/regex/asukoht_nlu.yml
Example of request body:
The
/data/regex/asukoht_nlu.yml
before adding:The
/data/regex/asukoht_nlu.yml
after adding: