GithubHelp home page GithubHelp logo

koding / koding-api-codegen Goto Github PK

View Code? Open in Web Editor NEW
0.0 7.0 2.0 227 KB

Koding API Codegen for Swagger Codegen

License: GNU Affero General Public License v3.0

JavaScript 54.62% Go 45.19% Shell 0.19%
koding api swagger

koding-api-codegen's Introduction

koding-api-codegen

Koding API Codegen over Swagger Codegen. This package is intended to generate client and server code for Koding API with the languages supported by Swagger Codegen. Due to some limitations for code generation, this package updates generated code based on the language specific postprocess.

Getting Started

Clone the repository and do npm install as usual, then;

  node generate.js

This will read the swagger.json in the same folder and generate koding-api (in JS by default) client code with Swagger's Online Generator on https://generator.swagger.io

If you need to generate code in golang for example;

  node generate.js go

All generated code will have koding-api-LANGUAGE directory.

Development

If you need to make some manual changes on the generated code, you can use the postprocess feature, which will work per language and you can find the example one for JavaScript in postprocess/javascript.js. Postprocess will include list of changes;

  [
    [ FILEPATH, REGEXP, NEWTEXT ], # Change 1
    [ FILEPATH, REGEXP, NEWTEXT ]  # Change 2
  ]

LICENSE

This repository is licensed under GNU AGPL V3

koding-api-codegen's People

Contributors

gokmen avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.