forked from loafle/openapi-generator-original
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework. * Fix suggestions in the PR discussion + add .bat and .sh file as requested. * Updated Readme.md file * Remove unused mustache file + fix baseName vs paramName in all the mustache files. * Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself. * Fix the problem with the Http.MultipartFormData.FilePart
16 lines
301 B
Plaintext
16 lines
301 B
Plaintext
package controllers;
|
|
|
|
import javax.inject.*;
|
|
import play.mvc.*;
|
|
|
|
public class ApiDocController extends Controller {
|
|
|
|
@Inject
|
|
private ApiDocController() {
|
|
}
|
|
|
|
public Result api() {
|
|
return redirect(String.format("/assets/lib/swagger-ui/index.html?/url=%s/api-docs", ""));
|
|
}
|
|
}
|