I have gathered or collated some information on Schema Change Migration/Management tool Liquibase please go through it.
Wednesday, 29 August 2018
Wednesday, 1 August 2018
Swagger 2 ASCII DOC Markup Converter
Recently I have been given a task to document my application API docs in ASCII doc format. Thanks to Swagger which helped me in generating ASCII doc as my application was built in Spring Boot. But, that doesn't stop there I need to convert the Swagger generated API doc to ASCII.
By the time when I wanted to generate my API doc my application already had about 30+ paths each having it's own CRUD REST operations leading to a couple more than 100 REST endpoints. That was a nightmare for me to convert all the JSON format API doc to ASCII format.
I was thinking should I quickly write a code so that it converts my JSON to ASCII doc or should I handle it some other means. Before, I started with anything like other problems I thought for a while is this problem is specific to myself or someone else had the same before.
As usual, this problem is generic most of us had been faced this issue. So, I was looking for the best way on how this issue is solved by others after a while, I came to know about swagger2markup where the main objective is to covert Swagger doc into ASCII doc and it's as simple as to use.
The following is the snippet chisel that broke the iceberg which stood in front of me:
//local file where I stored my swagger API doc
By the time when I wanted to generate my API doc my application already had about 30+ paths each having it's own CRUD REST operations leading to a couple more than 100 REST endpoints. That was a nightmare for me to convert all the JSON format API doc to ASCII format.
I was thinking should I quickly write a code so that it converts my JSON to ASCII doc or should I handle it some other means. Before, I started with anything like other problems I thought for a while is this problem is specific to myself or someone else had the same before.
As usual, this problem is generic most of us had been faced this issue. So, I was looking for the best way on how this issue is solved by others after a while, I came to know about swagger2markup where the main objective is to covert Swagger doc into ASCII doc and it's as simple as to use.
The following is the snippet chisel that broke the iceberg which stood in front of me:
//local file where I stored my swagger API doc
Path localSwaggerFile = Paths.get("swagger.json");
//the dir in which I need to store the ASCII DOC Path outputDirectory = Paths.get("build/asciidoc");
//Magic wand that did all the tricks in no time :)
Swagger2MarkupConverter.from(localSwaggerFile)
.build()
.toFolder(outputDirectory);
Subscribe to:
Posts (Atom)