Github provides a set of operations, look into using them for code generation of the client: https://github.com/octokit/routes