[docs request] how to create custom providers #13995
leobenzol
started this conversation in
Feature Requests
Replies: 2 comments
-
|
Thanks for submitting this request! To clarify, you want to learn how to create a module that accepts providers, right? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Yes indeed |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I'm building a plugin to manage notifications from the dashboard as much as possible. To make it usable with most notification providers, I'd like to define my own "template provider" in my template module.
I got it working but it was quite a bit of boilerplate, which took sometime to find in the medusa repo and to figure out if I needed to store the providers in db, if i needed a default, how should i limit it to one provider per channel, how to properly define foreign keys to models supplied by providers etc...
I'd be nice to have a docs page with all the provider boilerplate in one place, an example of how to use them and an overview of possible modifications
Beta Was this translation helpful? Give feedback.
All reactions