plugin-rest-endpoint-methods.js
Octokit plugin adding one method for all of api.github.com REST API endpoints

Usage
|
Browsers
|
Load @octokit/plugin-rest-endpoint-methods and @octokit/core (or core-compatible module) directly from cdn.pika.dev
<script type="module">
import { Octokit } from "https://cdn.pika.dev/@octokit/core";
import { restEndpointMethods } from "https://cdn.pika.dev/@octokit/plugin-rest-endpoint-methods";
</script>
|
|
Node
|
Install with npm install @octokit/core @octokit/plugin-rest-endpoint-methods. Optionally replace @octokit/core with a compatible module
const { Octokit } = require("@octokit/core");
const {
restEndpointMethods
} = require("@octokit/plugin-rest-endpoint-methods");
|
const MyOctokit = Octokit.plugin(restEndpointMethods);
const octokit = new MyOctokit({ auth: "secret123" });
// https://developer.github.com/v3/users/#get-the-authenticated-user
octokit.users.getAuthenticated();
There is one method for each REST API endpoint documented at https://developer.github.com/v3. All endpoint methods are documented in the docs/ folder, e.g. docs/users/getAuthenticated.md
Contributing
See CONTRIBUTING.md
License
MIT
Current Tags
-
8.0.0-beta.3
...
beta
(3 years ago)
-
13.3.2-cjs.1
...
cjs
(2 years ago)
-
18.0.0
...
latest
(4 months ago)
-
10.4.1
...
release-10.x
(3 years ago)
-
13.5.0
...
release-13.x
(2 years ago)
-
2.4.1
...
release-2.x
(6 years ago)
-
3.9.0
...
release-3.x
(7 years ago)
-
4.15.1
...
release-4.x
(6 years ago)
-
5.16.2
...
release-5.x
(4 years ago)
-
6.8.1
...
release-6.x
(4 years ago)
-
7.2.3
...
release-7.x
(3 years ago)
213 Versions