Re:Enabling the Future of GitHub's REST API with API Versioning
by frosted-flakes on Monday November 28, 2022 @06:54PM
(#33781648)
You can manually set the API version associated with the token.
Re:Enabling the Future of GitHub's REST API with API Versioning
by rattray on Monday November 28, 2022 @08:20PM
(#33782450)
Correct – and when creating the API Key, you'd want the API to give helpful hints about what other parts of the application use (which is trickier than it sounds).
Re:Enabling the Future of GitHub's REST API with API Versioning
by leipert on Tuesday November 29, 2022 @03:55AM
(#33785209)
Ah. That makes sense. Similar to choosing scopes then.
Re:Enabling the Future of GitHub's REST API with API Versioning
by easton on Monday November 28, 2022 @07:11PM
(#33781799)
It works for stripe because it’s one account per company, for GitHub you’d probably set it at the organization level, which would be a bit confusing for personal accounts as you say. I think you could still do it for personal accounts if you allow some kind of override.
That would not work if I (leipert) build a client against version 2022-11-28 and you (rattray) create an API token to use with that client on a later date though, right?