Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/readmeio/oas-examples

A collection of example OpenAPI 3.x and Swagger 2.0 documents.
https://github.com/readmeio/oas-examples

openapi swagger

Last synced: about 1 month ago
JSON representation

A collection of example OpenAPI 3.x and Swagger 2.0 documents.

Awesome Lists containing this project

README

        

# @readme/oas-examples

A collection of example OpenAPI 3.x and Swagger 2.0 documents.

[![Build](https://github.com/readmeio/oas-examples/workflows/CI/badge.svg)](https://github.com/readmeio/oas-examples/) [![](https://img.shields.io/npm/v/@readme/oas-examples)](https://npm.im/@readme/oas-examples)

[![](https://raw.githubusercontent.com/readmeio/.github/main/oss-header.png)](https://readme.io)

## Installation

```sh
npm install --save @readme/oas-examples
```

## Usage

```js
const definition = require('@readme/oas-examples/3.0/json/petstore.json');
```

Check out the `2.0/`, `3.0/`, and `3.1/` directories for the full list of available examples.