@octokit/plugin-rest-endpoint-methods
Octokit plugin adding one method for all of api.github.com REST API endpoints
Last updated 5 years ago by octokitbot .
MIT · Repository · Bugs · Original npm
$ cnpm install @octokit/plugin-rest-endpoint-methods 
SYNC missed versions from official npm registry.

plugin-rest-endpoint-methods.js

Octokit plugin adding one method for all of api.github.com REST API endpoints

@latest Build Status

Usage

Browsers

Load @octokit/plugin-rest-endpoint-methods and @octokit/core (or core-compatible module) directly from cdn.skypack.dev

<script type="module">
  import { Octokit } from "https://cdn.skypack.dev/@octokit/core";
  import { restEndpointMethods } from "https://cdn.skypack.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

TypeScript

Parameter and response types for all endpoint methods exported as { RestEndpointMethodTypes }.

Example

import { RestEndpointMethodTypes } from "@octokit/plugin-rest-endpoint-methods";

type UpdateLabelParameters = RestEndpointMethodTypes["issues"]["updateLabel"]["parameters"];
type UpdateLabelResponse = RestEndpointMethodTypes["issues"]["updateLabel"]["response"];

Contributing

See CONTRIBUTING.md

License

MIT

Current Tags

  • 3.0.0-beta.3                                ...           beta (6 years ago)
  • 7.0.1                                ...           latest (3 years ago)
  • 2.4.1                                ...           release-2.x (5 years ago)
  • 5.16.2                                ...           release-5.x (3 years ago)

18 Versions

  • 6.8.1                                ...           3 years ago
  • 7.0.1                                ...           3 years ago
  • 6.7.0                                ...           3 years ago
  • 5.16.2                                ...           3 years ago
  • 6.6.2                                ...           3 years ago
  • 5.13.0                                ...           4 years ago
  • 5.3.1                                ...           4 years ago
  • 5.4.1                                ...           4 years ago
  • 4.15.1                                ...           4 years ago
  • 5.10.0                                ...           4 years ago
  • 5.7.0                                ...           4 years ago
  • 3.17.0                                ...           5 years ago
  • 3.9.0                                ...           5 years ago
  • 2.4.1                                ...           5 years ago
  • 4.13.5                                ...           4 years ago
  • 3.0.0-beta.3                                ...           6 years ago
  • 3.13.2                                ...           5 years ago
  • 2.4.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org