Hey all, just wanted to share a useful plugin api ...
# 02-general-community-chat
Hey all, just wanted to share a useful plugin api pattern for anyone building.
Copy code
My latest plugin is a pattern for expanding your plugin's API without adding to your OpenAPI spec.


It's simple. Just make your api paths generic!


Plugin #6 - Commands API
https://twitter.com/colinfortuner/status/1647649246349258758?s=20 Also, if you're interested, i have a new plugin i'm working on that I need beta testers for! DM if interested 🙂 Code for plugin -> https://gist.github.com/cfortuner/38130debec4cc9b3412f2dbccf4d87a6
👍 1
How is this going to interact when there are multiple plugins at the same time
In practice, you probably wouldn’t name it Command API, but instead choose names specific to your api. Should be fine with multiple plugins!
Screen Shot 2023-04-16 at 5.36.22 PM.png
@colin fortuner , would you mind sharing the code file ?
amazing concept ❤️
Thank you Colin