Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewwalsh/openapi-devtools
Browser extension that generates API specs for any app or website
https://github.com/andrewwalsh/openapi-devtools
api chrome-extension devtools generator openapi openapi3 openapi31 specification
Last synced: 30 days ago
JSON representation
Browser extension that generates API specs for any app or website
- Host: GitHub
- URL: https://github.com/andrewwalsh/openapi-devtools
- Owner: AndrewWalsh
- License: mit
- Created: 2023-10-25T00:36:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-12T10:10:15.000Z (7 months ago)
- Last Synced: 2024-10-01T00:02:48.758Z (about 1 month ago)
- Topics: api, chrome-extension, devtools, generator, openapi, openapi3, openapi31, specification
- Language: TypeScript
- Homepage: https://chrome.google.com/webstore/detail/openapi-devtools/jelghndoknklgabjgaeppjhommkkmdii
- Size: 46.6 MB
- Stars: 3,912
- Watchers: 22
- Forks: 71
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![MIT License][license-shield]][license-url]
[![Download in the Chrome Web Store][chrome-shield]][chrome-url]
[![Download in the Firefox Add-on Store][firefox-shield]][firefox-url]
Effortlessly discover API behaviour with a browser extension that automatically generates OpenAPI specifications in real time for any app or website.
Read More
·
Report Bug
·
Give Feedback
## About The Project
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*:
- Instantly generate an OpenAPI 3.1 specification for any website or application just by using it
- Automatically merges new request & response headers, bodies, and query parameters per endpoint
- Click on a [path parameter](https://www.abstractapi.com/api-glossary/path-parameters) and the app will automatically merge existing and future matching requests
- View the specification inside the tool using [Redoc](https://www.npmjs.com/package/redoc) and download with a click
- Export and save a session at any time, or share it with others## Installation
[Download the extension in the Chrome Web Store][chrome-url].
[Download the extension in the Firefox Add-on Store][firefox-url].
Otherwise, to install manually:
- [Download and extract the dist.zip file in the latest release](https://github.com/AndrewWalsh/openapi-devtools/releases/latest/download/dist.zip)
- In Chrome, navigate to `chrome://extensions`
- In the top right enable the `Developer mode` toggle
- In the top left click `Load unpacked` and select the extracted `dist` directory
- Open a new tab and then select `OpenAPI` in the developer tools (open with `cmd+i` or `ctrl+i`)
- Firefox is more challenging. Please use the add-on store.## 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.
## What is OpenAPI?
An [OpenAPI](https://www.openapis.org/) 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.
## Contributing
To develop the project:
- `npm install`
- `npm run dev`[license-url]: https://github.com/AndrewWalsh/openapi-devtools/blob/main/LICENSE.txt
[license-shield]: https://img.shields.io/github/license/AndrewWalsh/openapi-devtools.svg?style=for-the-badge
[chrome-url]: https://chrome.google.com/webstore/detail/openapi-devtools/jelghndoknklgabjgaeppjhommkkmdii
[chrome-shield]: https://img.shields.io/badge/Google%20Chrome-4285F4?style=for-the-badge&logo=GoogleChrome&logoColor=white
[firefox-url]: https://addons.mozilla.org/en-US/firefox/addon/openapi-devtools/
[firefox-shield]: https://img.shields.io/badge/Firefox-FF7139?style=for-the-badge&logo=Firefox-Browser&logoColor=white