AndrewWalsh / openapi-devtools
- суббота, 28 октября 2023 г. в 00:00:05
Effortlessly discover API behaviour with a Chrome extension that automatically generates OpenAPI specifications in real time for any app or website
Effortlessly discover API behaviour with a Chrome extension that automatically generates OpenAPI specifications in real time for any app or website.
Report Bug
·
Request Feature
OpenAPI DevTools is a Chrome extension that generates OpenAPI specifications in real time from network requests. Once installed it adds a new tab to Chrome DevTools called OpenAPI
. While the tool is open it automatically converts network requests into a specification.
Features:
Download the extension in the Chrome Web Store.
Otherwise, to install manually:
chrome://extensions
Developer mode
toggleLoad unpacked
and select the extracted dist
directoryOpenAPI
in the developer tools (open with cmd+i
or ctrl+i
)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.
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.
To develop the project:
npm install
npm run build
chrome://extensions
Developer mode
toggleLoad unpacked
and select the extracted dist
directorynpm run build
and updating the dist
directory