requests-openapi
har-to-openapi
requests-openapi | har-to-openapi | |
---|---|---|
1 | 1 | |
79 | 70 | |
- | - | |
7.1 | 5.5 | |
3 months ago | 9 months ago | |
Python | TypeScript | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
requests-openapi
-
Show HN: OpenAPI DevTools – Chrome ext. that generates an API spec as you browse
It seems like you could combine this extension with some of the OpenAPI -> Python projects to get your desired result. (e.g. https://github.com/wy-z/requests-openapi )
har-to-openapi
-
Show HN: OpenAPI DevTools – Chrome ext. that generates an API spec as you browse
Genson-js is used to merge JSON Schema objects. Essentially there are 5 schemas that we care about in each request, for request bodies, request headers, response bodies, response headers, and query parameters. Each endpoint (which may or may not be parameterised) has only one schema for each of these values.
The idea for a crawler is a good one. The core logic that handles spec generation is decoupled from everything else, so it can be extracted into its own library.
But there are approaches that exist for this already, such as har-to-openapi.
https://github.com/jonluca/har-to-openapi
What are some alternatives?
scalar - Beautiful API references from OpenAPI/Swagger files ✨
gorilla - Gorilla: An API store for LLMs
apiclient-pydantic-generator - This code generator creates APIClient app from an openapi file.
openapi-devtools - Browser extension that generates API specs for any app or website
api2ai - Create API agents from OpenAPI Specs
mitmproxy
curlconverter - Transpile curl commands into Python, JavaScript and 27 other languages
DefinitelyTyped - The repository for high quality TypeScript type definitions.
webextension-polyfill - A lightweight polyfill library for Promise-based WebExtension APIs in Chrome