The REST API is now versioned. For more information, see "About API versioning."
REST API endpoints for gists and gist comments
Use the REST API to list, create, update and delete the public gists on GitHub Enterprise Server.
Use the REST API to list, create, update and delete the public gists on GitHub Enterprise Server.