How to create the API in the moodle with the file structure from scratch.
I think that this is the wrong forum to ask for developer information.
Please see https://moodledev.io