@octokit/plugin-rest-endpoint-methods
Octokit plugin adding one method for all of api.github.com REST API endpoints
Last updated 4 years ago by octokitbot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm 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.rest.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"];

In order to get types beyond parameters and responses, check out @octokit/openapi-types, which is a direct transpilation from GitHub's official OpenAPI specification.

Contributing

See CONTRIBUTING.md

License

MIT

Current Tags

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

159 Versions

  • 6.8.1                                ...           2 years ago
  • 7.0.1                                ...           2 years ago
  • 7.0.0                                ...           2 years ago
  • 6.8.0                                ...           2 years ago
  • 6.7.0                                ...           2 years ago
  • 6.6.2                                ...           2 years ago
  • 6.6.1                                ...           2 years ago
  • 6.6.0                                ...           2 years ago
  • 6.5.3                                ...           2 years ago
  • 6.5.2                                ...           2 years ago
  • 6.5.1                                ...           2 years ago
  • 6.5.0                                ...           2 years ago
  • 6.4.1                                ...           2 years ago
  • 6.4.0                                ...           2 years ago
  • 6.3.1                                ...           2 years ago
  • 6.3.0                                ...           2 years ago
  • 6.2.0                                ...           2 years ago
  • 6.1.2                                ...           2 years ago
  • 6.1.1                                ...           2 years ago
  • 6.1.0                                ...           2 years ago
  • 6.0.2                                ...           2 years ago
  • 6.0.1                                ...           2 years ago
  • 6.0.0                                ...           2 years ago
  • 5.16.2                                ...           2 years ago
  • 5.16.1                                ...           2 years ago
  • 5.16.0                                ...           2 years ago
  • 5.15.0                                ...           2 years ago
  • 5.14.1                                ...           2 years ago
  • 5.14.0                                ...           2 years ago
  • 5.13.0                                ...           3 years ago
  • 5.12.1                                ...           3 years ago
  • 5.12.0                                ...           3 years ago
  • 5.11.4                                ...           3 years ago
  • 5.11.3                                ...           3 years ago
  • 5.11.2                                ...           3 years ago
  • 5.11.1                                ...           3 years ago
  • 5.11.0                                ...           3 years ago
  • 5.10.4                                ...           3 years ago
  • 5.10.3                                ...           3 years ago
  • 5.10.2                                ...           3 years ago
  • 5.10.1                                ...           3 years ago
  • 5.10.0                                ...           3 years ago
  • 5.9.0                                ...           3 years ago
  • 5.8.0                                ...           3 years ago
  • 5.7.0                                ...           3 years ago
  • 5.6.0                                ...           3 years ago
  • 5.5.2                                ...           3 years ago
  • 5.5.1                                ...           3 years ago
  • 5.5.0                                ...           3 years ago
  • 5.4.2                                ...           3 years ago
  • 5.4.1                                ...           3 years ago
  • 5.4.0                                ...           3 years ago
  • 5.3.7                                ...           3 years ago
  • 5.3.6                                ...           3 years ago
  • 5.3.5                                ...           3 years ago
  • 5.3.4                                ...           3 years ago
  • 5.3.3                                ...           3 years ago
  • 5.3.2                                ...           3 years ago
  • 5.3.1                                ...           4 years ago
  • 5.3.0                                ...           4 years ago
  • 5.2.0                                ...           4 years ago
  • 5.1.1                                ...           4 years ago
  • 5.1.0                                ...           4 years ago
  • 4.15.1                                ...           4 years ago
  • 5.0.1                                ...           4 years ago
  • 5.0.0                                ...           4 years ago
  • 4.15.0                                ...           4 years ago
  • 4.14.0                                ...           4 years ago
  • 4.13.5                                ...           4 years ago
  • 4.13.4                                ...           4 years ago
  • 4.13.3                                ...           4 years ago
  • 4.13.2                                ...           4 years ago
  • 4.13.1                                ...           4 years ago
  • 4.13.0                                ...           4 years ago
  • 4.12.2                                ...           4 years ago
  • 4.12.1                                ...           4 years ago
  • 4.12.0                                ...           4 years ago
  • 4.11.0                                ...           4 years ago
  • 4.10.3                                ...           4 years ago
  • 4.10.2                                ...           4 years ago
  • 4.10.1                                ...           4 years ago
  • 4.10.0                                ...           4 years ago
  • 4.9.3                                ...           4 years ago
  • 4.9.2                                ...           4 years ago
  • 4.9.1                                ...           4 years ago
  • 4.9.0                                ...           4 years ago
  • 4.8.2                                ...           4 years ago
  • 4.8.1                                ...           4 years ago
  • 4.8.0                                ...           4 years ago
  • 4.7.0                                ...           4 years ago
  • 4.6.0                                ...           4 years ago
  • 4.5.2                                ...           4 years ago
  • 4.5.1                                ...           4 years ago
  • 4.5.0                                ...           4 years ago
  • 4.4.3                                ...           4 years ago
  • 4.4.2                                ...           4 years ago
  • 4.4.1                                ...           4 years ago
  • 4.4.0                                ...           4 years ago
  • 4.3.1                                ...           4 years ago
  • 4.3.0                                ...           4 years ago
  • 4.2.1                                ...           4 years ago
  • 2.4.1                                ...           4 years ago
  • 4.2.0                                ...           4 years ago
  • 4.1.4                                ...           4 years ago
  • 4.1.3                                ...           4 years ago
  • 4.1.2                                ...           4 years ago
  • 4.1.1                                ...           4 years ago
  • 4.1.0                                ...           4 years ago
  • 4.0.0                                ...           4 years ago
  • 3.17.0                                ...           4 years ago
  • 3.16.0                                ...           4 years ago
  • 3.15.0                                ...           5 years ago
  • 3.14.0                                ...           5 years ago
  • 3.13.3                                ...           5 years ago
  • 3.13.2                                ...           5 years ago
  • 3.13.1                                ...           5 years ago
  • 3.13.0                                ...           5 years ago
  • 3.12.3                                ...           5 years ago
  • 3.12.2                                ...           5 years ago
  • 3.12.1                                ...           5 years ago
  • 3.12.0                                ...           5 years ago
  • 3.11.1                                ...           5 years ago
  • 3.11.0                                ...           5 years ago
  • 3.10.0                                ...           5 years ago
  • 3.9.0                                ...           5 years ago
  • 3.8.0                                ...           5 years ago
  • 3.7.1                                ...           5 years ago
  • 3.7.0                                ...           5 years ago
  • 3.6.0                                ...           5 years ago
  • 3.5.2                                ...           5 years ago
  • 3.5.1                                ...           5 years ago
  • 3.5.0                                ...           5 years ago
  • 3.4.0                                ...           5 years ago
  • 3.3.3                                ...           5 years ago
  • 3.3.2                                ...           5 years ago
  • 3.3.1                                ...           5 years ago
  • 3.3.0                                ...           5 years ago
  • 3.2.0                                ...           5 years ago
  • 3.1.1                                ...           5 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.1                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 3.0.0-beta.3                                ...           5 years ago
  • 2.4.0                                ...           5 years ago
  • 3.0.0-beta.2                                ...           5 years ago
  • 2.3.0                                ...           5 years ago
  • 2.2.0                                ...           5 years ago
  • 3.0.0-beta.1                                ...           5 years ago
  • 2.1.3                                ...           5 years ago
  • 2.1.2                                ...           5 years ago
  • 2.1.1                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |