Best way to create a new API with bagisto/rest-api package
-
Hi there,
I'm fresher in your package, so now I'm reusing your package both of UI and rest-api packages.
But in my case, I'd like to create a new API that allow admin to register a new account. Currently, there is notregister
API for admin role in your package, so I'm planning to implement a new one.I'm hesitating with 2 options that should I create a new module then add this
register
API into that (as image below) or write it intoWebkul/Admin
.Note that in the future, maybe I'll also need to implement more API
Please tell me what is the best way to implement that. -
Hello @Filex
That depends on you either you can create it from the admin end or you can also create it after creating a package.
If you create by package creation then it will be easy to use in case in the future if you have done a new setup it will run by adding the package.
Thanks & Regards