Creating Plugins for Mautic 4.0

Your software: MAUTIC 4.0
My PHP version is : 7.4
*My MariaDB version: 10.4

My problem is* : I need to create plugin for Mautic 4.0. Is the process the same as done for Mautic 3.0? Can you please guide me to the correct link that explains set by step on how to create a plugin. Thanks

Steps I have tried to fix the problem :

Or is there any readymade wrapper in which I could place the custom API code and create the plugin?

Pretty much the same - there are some great sessions from Mautic Conference Global on YouTube:

The developer docs might be helpful:
Mautic Developer Documentation

in addition to:

Deprecations etc can be found in:

(we are in the process of moving to a new developer docs setup, so we’re a bit behind with keeping the docs up to date).