Skip to content

Help wanted on how to implement custom business logic #1513

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

Open
olia-bn opened this issue Mar 7, 2022 · 0 comments
Open

Help wanted on how to implement custom business logic #1513

olia-bn opened this issue Mar 7, 2022 · 0 comments
Labels

Comments

@olia-bn
Copy link

olia-bn commented Mar 7, 2022

We have an entity UserProduct that stores connection between User and Product (and some extra information).
Customer is using API extensively and would like not having to check for duplicates before poking an API endpoint (to know whether to create or update); ideally he'd like to submit User and Product and let the app figure it out.

I was planning on implementing a custom action controller, but documentation is clear tht in most cases, custom controllers are strongly discouraged.

What would be a good way to implement such feature in line with best practices?

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

No branches or pull requests

2 participants