Show HN: Auto-generate an OpenAPI spec by listening to localhost Hey HN! We've developed OpenAPI AutoSpec, a tool for automatically generating OpenAPI specifications from localhost network traffic. It’s designed to simplify the creation of API documentation by just using your website or service, especially useful when you're pressed for time. Documenting endpoints one by one sucks. This project originated from us needing it at our past jobs when building 3rd-party integrations. It acts as a local server proxy that listens to your application’s HTTP traffic and automatically translates this into OpenAPI 3.0 specs, documenting endpoints, requests, and responses without much effort. Installation is straightforward with NPM, and starting the server only requires a few command-line arguments to specify how and where you want your documentation generated ex. npx autospec --portTo PORT --portFrom PORT --filePath openapi.json It's designed to work with any local website or application setup without extensive setup or interference with your existing code, making it flexible for different frameworks. We tried capturing network traffic on Chrome extension and it didn't help us catch the full picture of backend and frontend interactions. We aim in future updates to introduce features like HTTPS and OpenAPI 3.1 specification support. For more details and to get started, visit our GitHub page ( https://ift.tt/PDHupxo ). We also have a Discord community ( https://ift.tt/DZ1PKMJ ) for support and discussions around using OpenAPI AutoSpec effectively. We're excited to hear what you all think! https://ift.tt/PDHupxo March 25, 2024 at 09:19PM
Show HN: Auto-generate an OpenAPI spec by listening to localhost https://ift.tt/kYUrT2M
Related Articles
Show HN: Easily offer and share expertise one-on-one https://ift.tt/3dklVibShow HN: Easily offer and share expertise one-on-one https://ift.tt/3u… Read More
Show HN: Low-Code Internal Chrome Extension Builder (Developer Preview) https://ift.tt/3wWhwK7Show HN: Low-Code Internal Chrome Extension Builder (Developer Preview… Read More
Show HN: Squirrelbyte – a SQLite-based JSON document server https://ift.tt/3s9l34nShow HN: Squirrelbyte – a SQLite-based JSON document server https://if… Read More
Show HN: Microsoft Teams (unofficial) Go library (WIP) https://ift.tt/3t5N3asShow HN: Microsoft Teams (unofficial) Go library (WIP) https://ift.tt/… Read More
Show HN: RentMyCPU – An open-source computational network https://ift.tt/3g52X13Show HN: RentMyCPU – An open-source computational network https://ift.… Read More
Show HN: CodeWing – next level code navigation for {Python,Java,Go} on GitHub https://ift.tt/3ms26swShow HN: CodeWing – next level code navigation for {Python,Java,Go} on… Read More
Show HN: DragonRuby Game Toolkit – Commercial 2D Game Engine https://ift.tt/2R2PKLxShow HN: DragonRuby Game Toolkit – Commercial 2D Game Engine https://i… Read More
Show HN: Khuro, a Private Social Network https://ift.tt/3gcAs1AShow HN: Khuro, a Private Social Network https://ift.tt/3dKAOcJ April … Read More
0 Comments: