Hello there,
I found this article here https://strapi.io/blog/how-to-create-a-custom-api-endpoint-in-strapi, describing creating an endpoint for api. If I follow this, and do a yarn strapi generate, I can also make the endpoint for my plugin. The generator created two files (one controller, and one service). This is fine but what kind of implementations afterwards? Also for me absolutly not logical, he creates the controllers and service direct under /src/plugin/controller and /src/plugin/service. Why not directly under /src/plugin/server/ … My plugin also uses a router, controller and so on…
Anyway, my plugin ist finished and I want to use it for external api-calls also. But if I try to call /api/mypluginname/ and so on, nothing happens, only error messages I got and get. In the admin panel I do not found my plugin under settings / role.
So my question: How to realize, that I can get access to my plugin services with an external tool like JSONVisualizer, to get all infos as a json return?
In the docs is nothing described. Please help.
regards,
Sven