Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/readmeio/openapi-workshop


https://github.com/readmeio/openapi-workshop

openapi swagger

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

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

# OpenAPI Workshop

![OpenAPI Workshop](./preview.png)

[![NPM version][npm-image]][npm-url]
[![node][node-image]][node-url]
[![repo][ci-image]][repo-url]

**✨ Learn how to use the OpenAPI Specification the easy way! ✨**

> **OAS** is a specification for machine-readable interface files for describing, producing, consuming, and visualizing RESTful web services
>
> — about [OpenAPI] at **Wikipedia**

## Exercises

This workshopper has easy and clear tasks that cover the most important aspects of OAS.

* **Basic Structure** — Overview of the skeletal structure of OAS
* **POST Endpoints** — Learn how to define a POST endpoint
* **POST requestBody** — Learn about the POST requestBody structure
* **POST response** — Learn about the POST response
* **GET Endpoints** — Learn how to define a GET endpoint
* **$ref** — Learn how to use `$ref` in OAS
* **Server Variables** — Build dynamic URLs for your API with Server Variables
* **anyOf, allOf** — Build complex schemas with `anyOf` and `allOf`

## Requirements

If you are on Windows, make sure you are using at least version 12 of Node.js

* [**Node.js**](node-url) ^12 || ^14 || ^16

## Installation

Open your terminal and run this command:

npm install -g openapi-workshop

## Usage

Open your terminal and run the following command:

openapi-workshop

## License

MIT © [ReadMe](https://readme.com)

[node-url]: https://nodejs.org/en/
[npm-url]: https://npmjs.org/package/openapi-workshop
[OpenAPI]: https://en.wikipedia.org/wiki/OpenAPI_Specification
[repo-url]: https://github.com/readmeio/openapi-workshop

[ci-image]: https://img.shields.io/github/actions/workflow/status/readmeio/openapi-workshop/ci.yml?branch=main&style=flat-square
[node-image]: https://img.shields.io/node/v/openapi-workshop.svg?style=flat-square
[npm-image]: https://img.shields.io/npm/v/openapi-workshop.svg?style=flat-square