GithubHelp home page GithubHelp logo

openapi-autospec's Introduction

OpenAPI AutoSpec

Need last-minute docs? Quickly capture API behavior with a server proxy that automatically generates OpenAPI specifications in real-time from any locally running website or service.

license Join Discord

About

OpenAPI AutoSpec is a local server proxy that generates new OpenAPI specifications from network requests. When running, it will connect your local HTTP traffic to the proxy. Once that happens, it will automatically convert network traffic into the specification.

Features:

  • Generate OpenAPI 3.1 specifications automatically for any local website or application
  • Capture and document new requests & responses, including headers, bodies, and query parameters
  • Review generated specifications in real-time on your terminal and download them with ease
  • Export your OpenAPI file for sharing

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 0.10 or higher is required.

Installation steps: npm install command:

$ npm install openapi-autospec

To start the server:

$ node proxy.js

This will initiate the server that listens to network requests from your locally running websites, automatically documenting their API interactions.

Usage

Once the server is running, it will automatically begin documenting the API behavior of your local web applications. The documentation process is based on the network requests observed, so you don't need to do any additional setup within your applications.

The server provides real-time printouts of the generated OpenAPI specifications. From here:

  • Fill out all fields you wish to be documented for forms
  • Export the OpenAPI specification for external use or sharing
  • You should find and replace all instances of ‘localhost’ or ‘127.0.0.1:8000’ in the exported doc with your actual website
  • Filter hosts and parameterize paths to fine-tune the documentation properly for server stubs
  • Restart the documentation process at any time to refresh the generated specifications

Roadmap

Want an easy way to automatically build and manage your SDKs, Zapier/Make integrations, Docs, Webhooks, RPA plugins, and custom plugins to marketplaces like Salesforce, Zoom, GSuite all in one spot while getting your app AI-agent ready? Contact us. We can custom tailor this and more.

As for the repo:


What is OpenAPI?

OpenAPI specifications provide a standardized description of an API's expected requests and responses, making APIs easier to understand and integrate with. Governed by the OpenAPI Initiative and the Linux Foundation, they are the modern standard for documenting RESTful APIs.

Community

Join our Discord! We are here to answer questions and help you get the most out of our OpenAPI tool.

Contributing

We welcome community contributions. For guidelines, refer to our CONTRIBUTING.md.

Shoutouts to Awesome API DevTools and OpenAPI Devtools.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.