easily generate docs and playground for your RESTful API
@ApiFlow, @ApiFlowSet, @ApiFlowStep have been moved to another package. If you are using them you just need to reorganize your imports.
You can remove JSONDoc annotations from Spring's objects returned by methods or being the method's request body.
If you were using this scanner org.jsondoc.springmvc.scanner.SpringJSONDocScanner, you now need to change it to one of the following org.jsondoc.springmvc.scanner.Spring3JSONDocScanner or org.jsondoc.springmvc.scanner.Spring4JSONDocScanner depending on the Spring version you have on the classpath.
url query parameter containing the jsondoc path, for example in this way: http://localhost:8080/jsondoc-ui.html?url=http://localhost:8080/jsondoc. In this way JSONDoc will be automatically loaded without typing anything in the UI input box.The page jsondoc.jsp has been changed to jsondoc-ui.html.
The required property of the @ApiPathParam annotation has been removed. Easy to fix: just remove it from your annotated parameters.
Unfortunately version 1.1.0+ is not backward compatible with previous versions due to a modification needed to make the documentation writing and generation easier. Fortunately the changes you are required to do on your code are small and quickly doable with some find and replace in your IDE.
The @ApiParam annotation is now split into @ApiPathParam and @ApiQueryParam. Moreover the ApiParamType has been removed from the @ApiPathParam and @ApiQueryParam annotations. To fix this, replace @ApiParam with the corresponding @ApiPathParam or @ApiQueryParam annotation and remove ApiParamType annotation property.
When using Spring MVC, the class JSONDocController now wants initialization parameters injected on the constructor and not with properties setters. To fix this, replace the existing bean declaration in the Spring's XML application context (or in Java configuration) with:
<bean id="documentationController" class="org.jsondoc.springmvc.controller.JSONDocController">
<constructor-arg name="version" value="1.0" />
<constructor-arg name="basePath" value="http://localhost:8080/api" />
<constructor-arg name="packages">
<list>
<value>org.jsondoc.sample.controller</value> <!-- packages in which you have your spring controllers -->
<value>org.jsondoc.sample.pojo</value> <!-- packages in which you have your objects -->
<value>com.sample.external.pojo</value> <!-- they can also belong to external jars -->
</list>
</constructor-arg>
</bean>