buerokratt / Training-Module

MIT License
2 stars 20 forks source link

REST service to fetch content of a specific rule #113

Open turnerrainer opened 1 year ago

turnerrainer commented 1 year ago

AS AN Architect I WANT to have a REST service to fetch the content of a specific rule SO THAT there wouldn't be duplicate services for it

Acceptance Criteria

Examples

stories.yml

version: "3.0"
rules:
- rule: common_tervitus_conversation
  conversation_start: true
  steps:
  - intent: common_tervitus
  - action: utter_common_esimene_tervitus

- rule: common_tervitus
  steps:
  - intent: common_tervitus
  - action: utter_common_tervitus

- rule: common_hüvasti_jätmine
  steps:
  - intent: common_hüvasti_jätmine
  - action: utter_common_hüvasti_jätmine

Output for a request for story common_tervitus

{
  "rule": "common_tervitus",
  "steps": [
    {
      "intent": "common_tervitus"
    },
    {
      "action": "utter_common_tervitus"
    }
  ]
}
RaulAltmae commented 1 year ago

Changed input parameter from rule_name to rule

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/151