Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defining a ruleset #44

Open
prafulbagai opened this issue Feb 14, 2018 · 1 comment
Open

Defining a ruleset #44

prafulbagai opened this issue Feb 14, 2018 · 1 comment

Comments

@prafulbagai
Copy link

I've an API endpoint, /api/create/. This creates a new entry in the DB depending upon the payload received from the client.

Payload - { 
'field1': 'value1`,
'field2': 'value2`,
'field3': 'value3`,
'field4': 'value4`,
'type': 'A'
}

Now depending on the type, I've a specific ruleset/workflow. For eg:- Type A needs to perform certain tasks before saving the data, Type B has its own set of operations.

I don't have any UI, just the requests coming over the POST request. How can I use business-rules for such a use-case?

@bhargavrpatel
Copy link

I am currently evaluating Business Rules for our needs. We have a similar situation to you in that we have an existing API which has a defined interface between our dashboard. An alternative we will likely do is to massage the existing data in the format of the rule dictionary. Is this not possible in your situation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants