Coder Social home page Coder Social logo

madebynavi / swaggerpdfgeneration Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 43 KB

Script designed to generate PDF files from provided JSON files.

PowerShell 100.00%
json-to-pdf openapi-specification powershell-script script-automation swagger-documentation

swaggerpdfgeneration's Introduction

OpenAPI2PDF / RapiPDF - Extension

This is an extension of the work done by : https://github.com/iravikumar0403/openapi2pdf-cli and https://github.com/mrin9/RapiPdf

About

This is a script with the purpose of automate PDF generation for documentation based on Swagger 2.0 / OpenAPI 3.0 standard. It can be attached to an automated process or used as is for manual execution when needed.

This is for everyone to use, feel free to fork it, modify it for your usecases.

Instructions

Parameters

[-Root / -R]

Executes the script with asumption that the "json" files are located in the root of script. Will create an output folder in same folder where script is located.

[-Base / -B]

Executes the script with asumption that the folder structure of repository has been downloaded and is in use.

[-In / -I / -Input]

Executes the script with a custom path to where the "json" files are located. If no "Out" param is provided, an output folder in script root will be created.

[-Out / -O / -Output]

Executes the script with a custom path to where to store the "pdf" files. If no "In" param is provided, asumes "InputDirectory" from repo or manually created as location of "json" files.

[-C / -Compress]

Will ZIP/Compress the output folder. Can be conmbined with all other param except [-Help / -H]

[-Help / -H]

Only executes the script to show the built-in help message.

Examples

    .\Run.ps1 [-Help / -H]

    .\Run.ps1 [-Root / -R]

    .\Run.ps1 [-Base / -B]

    .\Run.ps1 [-In / -I / -Input] <Path>

    .\Run.ps1 [-Out / -O / -Output] <Path>

    .\Run.ps1 [-In / -I / -Input] <Path> [-Out / -O / -Output] <Path>
    
    .\Run.ps1 [-Root / -R] [-Compress / -C / -Comp]

    .\Run.ps1 [-Base / -B] [-Compress / -C / -Comp]

    .\Run.ps1 [-In / -I / -Input] <Path> [-Compress / -C / -Comp]

    .\Run.ps1 [-Out / -O / -Output] <Path> [-Compress / -C / -Comp]

    .\Run.ps1 [-In / -I / -Input] <Path> [-Out / -O / -Output] <Path> [-Compress / -C / -Comp]

swaggerpdfgeneration's People

Contributors

madebynavi avatar

Stargazers

 avatar

Watchers

 avatar

swaggerpdfgeneration's Issues

Parameter validation

Implement validation when using parameters when executing the script. Right now all combinations work, which they should not do.

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.