Home

Awesome

<a name="readme-top"></a>

MIT License Download in the Chrome Web Store Download in the Firefox Add-on Store

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/AndrewWalsh/openapi-devtools"> <img src="resources/logo.svg" alt="Open API dev tools" width="300" height="250"> </a> <p align="center" style="max-width: 600px;"> Effortlessly discover API behaviour with a browser extension that automatically generates OpenAPI specifications in real time for any app or website. <br /> <br /> <a href="https://awalsh.io/posts/openapi-devtools/">Read More</a> · <a href="https://github.com/AndrewWalsh/openapi-devtools/issues">Report Bug</a> · <a href="https://forms.gle/fA2EtvamUrsRxXKYA">Give Feedback</a> </p> </p> </div>

About The Project

<p align="center" width="100%"> <img width="80%" src="resources/demo.gif"> </p>

OpenAPI DevTools is a browser extension that generates OpenAPI specifications in real time from network requests. Once installed it adds a new tab to DevTools called OpenAPI. While the tool is open it automatically converts network requests into a specification.

Features:

<p align="right">(<a href="#readme-top">back to top</a>)</p>

Installation

<p align="center" width="100%"> <img width="80%" src="resources/demo-img.png"> </p>

Download the extension in the Chrome Web Store.

Download the extension in the Firefox Add-on Store.

Otherwise, to install manually:

<p align="right">(<a href="#readme-top">back to top</a>)</p>

Usage

The specification will automatically populate based on JSON requests that fire as you browse the web. In the settings menu you can filter hosts and parameterise paths in URLs. Once you do so all matching existing and future requests to that endpoint will be merged. This process is irreversible, but you can clear the specification and restart at any time.

When the same endpoint responds with different data, such as a value that is sometimes a string and sometimes null, the specification for that value will be either string or null. All information is accounted for in the final specification. If you see something missing from a request, trigger a request that contains the missing information.

The settings menu contains several options. Here you can enable real examples in the specification. You can also export the current state of the app as a string, share or store it, and import it later.

<p align="right">(<a href="#readme-top">back to top</a>)</p>

What is OpenAPI?

An OpenAPI specification is a description of what an API expects to receive and what it will respond with. It is governed by the OpenAPI Initiative and the Linux Foundation. OpenAPI specifications are the modern standard for RESTful APIs, and systems that have them are far easier to work with.

<p align="right">(<a href="#readme-top">back to top</a>)</p>

Contributing

To develop the project:

<p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- MARKDOWN LINKS & IMAGES --> <!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->