Skip to content

someshkoli/collection-SDK-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postman-collection-codegen

Introduction

  • A SDK generator for postman collections. Generates entire SDK with all the requests inside the postman collection powered with postman-code-generator. This is a collection level sdk generator which generates snippets for collections having multi-level heirarchical arrangement.

Installation

  • git clone https://github.com/someshkoli/postman-collection-codegen.git
  • cd postman-collection-codegen
  • npm install

Libraries used:

Supported code generators

  • nodejs-requests
  • dart

Features:

  • Multi Level Collection Code generator.
  • Auto Documenting with postman collection descriptions.
  • Flexible codes for better usage in integrated systems.
  • Output to file

Usage:

const sdkGenerator = require('sdk_generator_root');

/*create a new sdk generator instance by providing collection and sdkgenerator variant as parameters. */

const instance = new sdkGenerator(testCollectionPath, 'nodejs-request');

/* to get generated sdk use generate() method. This returns the generated sdk in string format. */

var result = instance.generate();

/* to output the sdk to a file use outputFile(file_name) method */  

a.outputFile('./examples/output/sample-collection');

About

An automated sdk generator for postman Collections.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published