Skip to content

nverno/swagger-to-org

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swagger to Org

MELPA

This is a package that allows you to take parse a swagger.json file, and produce an org-mode buffer/file out of it's contents.

This is useful, as it will allow easy exporting to static document formats when given the swagger.json file as input, by way of the various org-mode exports available in ox-mode.

Installation

To install, clone the repository via:

cd ~/.emacs.d
git clone https://github.com/ahungry/swagger-to-org.git

Then, make sure to add the following to your ~/.emacs:

Using require

(add-to-list 'load-path "~/.emacs.d/swagger-to-org/")
(require 'swagger-to-org)

Using swagger-to-org.el

After requiring it, you can generate your org-mode buffer by using:

M-x swagger-to-org-from-file-name

and entering the file path to your local swagger.json file.

TODO

  • Additional swagger.json field parsing beyond the routes (and methods) and definition objects.

  • Creation of scripts to run swagger.json to pdf/html/latex/org formats via the CLI for automatic processing of file.

License

GPLv3

About

Convert a swagger.json file into an emacs org-mode buffer/file for export to static pdf/html/latex

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Emacs Lisp 100.0%