-
👋 @gr2m I had a couple of questions about the GH Enterprise REST API. It looks like rest.js doesn't support the API operations for enterprise administration and management console, is that correct? If not, it makes sense but I'm curious if we should describe this in the OpenAPI schema in some way. For example, we shouldn't automatically generate an Octokit example if the library doesn't support the operation: Or perhaps we're better off having an exclude list that we check against directly in the https://github.com/github/docs-internal repo? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There is this plugin to use with |
Beta Was this translation helpful? Give feedback.
-
The examples in the docs are not using
so tl;dr, I think we are good |
Beta Was this translation helpful? Give feedback.
The examples in the docs are not using
@octokit/rest
, but@octokit/core
. All current and future endpoints are automatically supported by@octokit/core
, it's just a slight wrapper around a generic request method.@octokit/rest
adds methods for each endpoint, which is just for convenience. Because it adds quite a lot of code,@octokit/rest
does not include the enterprise methods. Instead, you can compose your own Octokit with@octokit/core
and then the plugins you need:@octokit/rest
is using, see composition here)so tl;dr, I think we are …