GithubHelp home page GithubHelp logo

isabella232 / genio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paypal/genio

0.0 0.0 0.0 62 KB

Genio is an extensible tool that can generate code to consume APIs in multiple programming languages based on different API specification formats.

License: Apache License 2.0

Ruby 100.00%

genio's Introduction

Genio is an easy to use code generation tool that can generate API client libraries in multiple programming languages. Genio comes with in-built support for multiple API specification formats - WSDLs, WADLs and the Google discovery format but also allows you to plug in parsers for additional specification formats. It uses a simple templating system that allows easy customization of the generated code.

Requirements

  • Ruby 1.9.3 or above

Installation

gem install genio

Usage

With genio installed on your local machine, run

genio <java|php|dotnet> --schema=path/to/specification [--output-path=output/directory]

With the --schema argument option, Genio will attempt to guess the specification type based on the file extension of the argument. If you follow non-standard naming convention for your files, please use the --wsdl / --wadl / --json-schema arguments instead.

Once you have generated source files with genio, you can use them in your project in conjunction with PayPal's core SDK libraries. You can take a look at the sample hello world projects and read language specific instructions here.

Supported languages

Genio comes with templates for the following programming languages. Support for other languages to follow soon.

  • java
  • dotnet
  • php

Supported formats

  • WADL (--wadl=path/to/schema.wadl)
  • Google discovery format (--json-schema=path/to/schema.json)
  • WSDL (--wsdl=path/to/schema.wsdl)

Upcoming features

We have plans to add the following soon

  • Automatic API reference generation from spec.
  • Support for JSON schema Version 4 specification.

Documentation

Contributions and issues

We will be happy to accept contributions by way of templates for additional languages and parsers for other API specification formats. Please submit a pull request if you would like to contribute.

If you have a feature ask or an issue to report, please file an issue on github.

genio's People

Contributors

aydiv avatar prannamalai avatar siddick 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.