buerokratt / Training-Module

MIT License
2 stars 20 forks source link

REST service to delete an existing Rasa test story #119

Open turnerrainer opened 1 year ago

turnerrainer commented 1 year ago

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

Acceptance Criteria

Temporary list of endpoints - https://github.com/buerokratt/Buerokratt-onboarding/issues/8

Example

Input tests/test_stories.yml before deleting a specified story

stories:
- story: common_tervitus
  steps:
  - user: |
      tere
    intent: common_tervitus
  - action: utter_common_tervitus

- story: common_hüvasti_jätmine
  steps:
  - user: |
      headaega
    intent: common_hüvasti_jätmine
  - action: utter_common_hüvasti_jätmine

Output after a request to delete common_tervitus

stories:
- story: common_hüvasti_jätmine
  steps:
  - user: |
      headaega
    intent: common_hüvasti_jätmine
  - action: utter_common_hüvasti_jätmine
RaulAltmae commented 1 year ago

sample input for /rasa/test-stories/delete

{
  "story": "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