Somewhat indirect (as it deals with Microsoft Graph), but it is REST API and how to go about a custom connector.
Hope it helps.
_____________________________________________________________________________________ Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.