Giter VIP home page Giter VIP logo

openapi-connector-template-generator's Introduction

OpenAPI Generator for the Camunda HTTP/JSON Connector Runtime

License

Compatible with: Camunda Platform 8

This project is a simple, hacky implementation of an OpenAPI generator for HTTP/JSON Connector templates, written in Java and Shell. It allows you to rapidly create Connector templates for any REST API that provides an OpenAPI specification.

What are Camunda Connectors?

The Camunda Integration Framework aims to provide connectivity with any arbitrary outside system. The Camunda HTTP/JSON API allows to connect and orchestrate any HTTP API with JSON payload, including REST APIs.

What is OpenAPI?

The OpenAPI standard defines a language-agnostic interface to REST APIs. Many APIs, including many popular ones, offer their users a OpenAPI specification of their API for convenience. The OpenAPI project comes with a generator, that allows to create server stubs and client libraries for a majority of languages. The project is open-source and allows for extensibility.

Usage

Run it as follows:

sh ./generate.sh -i schema.yaml -o targetDir

where schema.yaml is your OpenAPI schema, and targetDir is your targeted output directory for the Connector templates. Both JSON and YAML schemas are supported.

When you receive the message GENERATOR SUCCESS, you can find your templates in the output dir.

ℹī¸ Before using this templates in production, it is strongly recommended to clean them up!

Run sh ./generate.sh -h for an overview of other arguments.

Requirements

You need Maven and jq running on your machine.

Modifying the Generator

To modify the generator, it is most of the times sufficient to change the mustache templates in generators/connectors-codegen/src/main/resources/templates. For more complex adjustments, you also need to update the generator Java classes in generators/connectors-codegen/src/main/java/io/camunda/connectors/codegen/. Also see the OpenAPI generator reference docs, as well as this overview of mustache variables, and the example templates and classes.

openapi-connector-template-generator's People

Contributors

remcowesterhoud avatar hkupitz avatar christian-konrad 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.