Code Monkey home page Code Monkey logo

sdk-generation-scripts's Introduction

SDK Generation Scripts

This repository contains all the scripts, templates and guidelines for the SDK generation of the Cloudinary OpenAPI based services.

Adding a new langauge

  • Clone this repo
  • Enter repo directory
  • Clone [email protected]:CloudinaryLtd/service_interfaces.git
  • Configure environment:
  • Set the following environment variables(you can change the actual values depending on your needs):
    • export YML=service_interfaces/media-delivery/schema.yml
    • export SDKS=nodejs

Install:

  • pip3 install pyyaml
  • Install Java
  • brew install wget
  • bash get_open_api_gen.sh

Run: python3 main.py

Customizing and configuring a new SDK

  • Open the resulting generated folder in your IDE (for example media_delivery_java)
  • Get your templates by running java -jar openapi-generator.jar author template -g {put your template here} --library webclient
  • To customize a template, just copy the relevant file to templates/{your language value in sdk.json} folder and edit.
  • Variables inside templates can be set by adding configs/{your language value in sdk.json}/config.yml. Some of those variables should be prepopulated/pre-generated. It will be done in the future, please notify the maintainer of this project for feature requests.

sdk-generation-scripts's People

Contributors

adimiz1 avatar const-cloudinary avatar nirmaoz avatar strausr avatar

Watchers

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