I have some Java code with Java annotations in it that define a Swagger interface. I have the URL but no YAML file defining the interface. How do I create a YAML file from the annotated Java code?
Here is an example of the Java code:
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
...
@ApiOperation(value="(get the AAR files under directory AAR )")
@ApiImplicitParams({
@ApiImplicitParam(value = "this is Campus Id eg:101" ,name = "CAMPUS",required = false,dataType = "String",paramType = "query"),
I have the URL but no YAML file defining the interface.
You can export OpenAPI YAML/JSON file from Swagger UI as explained here:
Subject | Author | Latest Post |
---|---|---|