buerokratt / Training-Module

MIT License
2 stars 20 forks source link

REST service to create a new Rasa test story #118

Open turnerrainer opened 1 year ago

turnerrainer commented 1 year ago

AS AN Architect I WANT to have a REST service to create a new Rasa test story SO THAT there wouldn't be duplicate services for it

Acceptance Criteria

When creating a new test story, the initial input is fetched by using either using POST endpoints /rasa/rules or /rasa/stories Use POST endpoint /intents/examples to fetch a list of Rasa intents for the specified rules and stories

RaulAltmae commented 1 year ago

Changes apply only in case https://github.com/buerokratt/Training-Module/issues/112 for the test story name provided as a POST parameter dow not respond with HTTP 200

There is wrong issue linked, i think this issue https://github.com/buerokratt/Training-Module/issues/106 is meant to be linked

RaulAltmae commented 1 year ago

sample input for /rasa/test-stories/add

{
  "story": "common_tervitus",
  "steps": [
    {
      "user": "tere\n",
      "intent": "common_tervitus"
    },
    {
      "action": "utter_common_tervitus"
    }
  ]
}
turnerrainer commented 1 year ago

@RaulAltmae please link this issue with an appropriate pull request.

RaulAltmae commented 1 year ago

Pull request https://github.com/buerokratt/Training-Module/pull/166