Socket
Socket
Sign inDemoInstall

@github/openapi

Package Overview
Dependencies
165
Maintainers
16
Versions
88
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @github/openapi

OpenAPI schema for GitHub's REST API


Version published
Weekly downloads
42
decreased by-58.42%
Maintainers
16
Install size
74.9 MB
Created
Weekly downloads
ย 

Readme

Source

This project is no longer maintained!

The official OpenAPI descriptions for GitHub's REST API are now available at github.com/github/rest-api-description. Have a nice day!








@github/openapi

This project houses the official OpenAPI definitions for GitHub's REST API, including the api.github.com API and all currently supported GitHub Enterprise versions of the REST API.

๐Ÿ‘‹ Here to use the OpenAPI schema? See Downloads

๐Ÿ‘‹ Here to contribute? See CONTRIBUTING.md

Contents

What is OpenAPI?

OpenAPI (formerly Swagger) is an extension of JSON Schema that defines a standard, language-agnostic interface to RESTful APIs which allows both humans and computers to discover and understand the capabilities of an HTTP web service.

OpenAPI schemas are contracts that are useful both for API authors and API consumers. They can be used to produce API documentation, generate API clients (SDKs), run automated tests, validate API payloads, etc.

Who's using this?

These definitions are used to generate GitHub's REST API reference documentation at docs.github.com/rest/reference.

These definitions will also soon be used to generate the JavaScript and Ruby Octokit client libraries. (This is a work in progress.)

Project status

This project is under active development and is rapidly evolving. To borrow from Slack's OpenAPI README:

We use a combination of internal metadata, custom scripting, and old fashioned writing-by-hand to produce these specifications. They don't always tell the whole truth and are subject to author and operator error. They are really useful though.

We use semantic versioning and conventional commit messages to ensure we're tracking breaking changes and releasing new major versions as necessary, but we cannot always be sure how changes might affect downstream consumers. If you are using these definitions, please be aware that they will change over time.

Downloads

โœ‹ Before using these OpenAPI definitions, please read the project status.

You can download the latest api.github.com-deref.json from unpkg.com or view all versions of the schema.

If you're using Node.js, you can download and install the @github/openapi package using npm:

npm install @github/openapi

Usage

After installing the npm package, the raw schema files can be required directly:

const schema = require('@github/openapi/dist/api.github.com.json')

The package also exports a single object called schemas that includes referenced and dereferenced variants of the schema for api.github.com and GitHub Enterprise:

const { schemas } = require('@github/openapi')

// {
//   'api.github.com-deref': {...},
//   'api.github.com': {...},
//   'ghe-2.18-deref': {...},
//   'ghe-2.18': {...},
//   'ghe-2.19-deref': {...},
//   'ghe-2.19': {...},
//   'ghe-2.20-deref': {...},
//   'ghe-2.20': {...},,
//   'ghe-2.21-deref': {...},
//   'ghe-2.21': {...}
// }

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


Roman Hotsiy

๐Ÿ’ป ๐Ÿ“– ๐Ÿค” ๐Ÿ‘€ ๐Ÿ’ก

Gregor Martynus

๐Ÿ’ป ๐Ÿ–‹ ๐Ÿ“– ๐Ÿค” ๐Ÿ‘€

Zeke Sikelianos

๐Ÿค” ๐Ÿ‘€

Sarah Schneider

๐Ÿ‘€

Marc-Andre Giroux

๐Ÿค”

Keith Cirkel

๐Ÿš‡

Rachael Sewell

๐Ÿ“– ๐Ÿ‘€

Chiedo John

๐Ÿ“–

Adam Altman

๐Ÿ“– ๐Ÿ‘€

Martin Lopes

๐Ÿ“–

Lucas Costi

๐Ÿ“–

jmarlena

๐Ÿ“–

This project follows the all-contributors specification. Contributions of any kind welcome!

Keywords

FAQs

Last updated on 16 Oct 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc