This would help to reduce manual work for setting it all up. Some docs about this can be found here https://moodledev.io/docs/5.0/apis/subsystems/external/advanced/custom-services