Thanks for your reply.
I am new to Swagger and maybe I don't understand it right, but after
reading documentation I see two stages:
- JSON documents describing the API (generated with swagger-spring-web
or any other Java integration or written manually)
- (Web) GUI presenting API (static generated pages based on
existing/generated JSON documents or more dynamic pages feeding with
JSON documents using Swagger UI)
In the second step I see a few interesting options, but the first step
is more problematic for me.
As I use Spring MVC (and its annotation) which are mostly supported by
swagger-springmvc (or swagger4spring-web) the only sensible way I see
(without manual writing JSON documents) is to setup mini Spring context
(just with controllers) and fetch generated JSONs to further usage.
Is it possible (supported) to generate JSON documents (for Spring MVC
application) just using static code parsing (without the need to run the
application)?
Marcin
> On Monday, December 30, 2013 6:04:18 AM UTC-8, Marcin Zajączkowski wrote:
>>
>> Hi. I have a Spring MVC based application with swagger-springmvc used to
>> generate REST API documentation. I would like to have documentation served
>> by Swagger-UI on some HTTP front server. I just need JSON files (which are
>> generated from Spring MVC and Swagger annotations).
>>
>> I could configure my CI server to setup Tomcat/Jetty with minimal Spring
>> context, download online JSON files and put them on the HTTP server, but I
>> wonder is there a simpler way to generate Swagger JSON files from Spring
>> MVC application?
>>
>> Marcin
>>
>> --
>>
http://blog.solidsoft.info/ - Solid Soft - Working code is not enough
>>
>>
>
--
http://blog.solidsoft.info/ - Working code is not enough