Code Monkey home page Code Monkey logo

openapigenerator's Introduction

What is it?

It is OpenApi configuration generator working with origin source code. It generates yaml-files with OpenApi 3.0 configuration from source code.

Latest Stable Version Latest Unstable Version License

Main purpose of this library is to simplify OpenApi-file generation for existing API with a lot of methods and specially avoid manual writing of it.

ToDo:

  • Describe all scraper functions
  • Support for few operations on one endpoint
  • Extracting class types into components

Limitations:

  • Only query parameters supported (url?param1=...&param2=...)
  • Only one response type supported - HTTP 200 response
  • No support for parameters' / fields' / properties' format, example and other validators.

How it works

  1. You create your own scraper (a class, inheriting DefaultScraper), which should return a special result with:

    • list of your API specifications (~ separate OpenApi-files)
    • list of your API specification configurations (paths, tags, security schemes, ...)
    • and so on.

    In two words, you need to create a scraper that will find all API endpoints of your application, collect them and pass it in special format.

  2. You pass it to a generator, it generates ready-to-use OpenApi-specifications.

  3. You save these specifications in different files / places or move to different hosts.

For example go to How it works section.

How to Scrape

Go to Scraper result section

openapigenerator's People

Contributors

wapmorgan avatar

Watchers

 avatar

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.