REST API endpoints for starring - GitHub Docs

Use the REST API to bookmark a repository.