Hi,
i am develop play framework project and i want to include swagger into it.
one of my routes look like this :
DELETE /file/*filename @fileServer.controller.FileController.deleteFile(filename: String)
i am trying to set swagger annotations to test this route.
*filename = any uri that place after /file/ (example: /file/testfile or /file/folder/testfile and so on..)
when i added the swagger annotations:
@Api(value = "/file", description = "File system operations")
public class FileController extends Controller
@ApiOperation(httpMethod = "DELETE", value = "Delete file")
@ApiResponses(value = {
@ApiResponse(code = OK, message = "Success"),
@ApiResponse(code = NOT_FOUND, message = "File not found")})
@ApiImplicitParams(value = {
@ApiImplicitParam(value = SecurityUtils.CREDENTIAL_KEY, required = true, dataType = "String", name = SecurityUtils.CREDENTIAL_KEY, paramType = "query"),
@ApiImplicitParam(value = "filename", required = true, dataType = "String", name = "filename", paramType = "path")})
@ValidateRequest
public Promise<Result> deleteFile(String filename)
i am getting in swagger UI this:
and i cant edit the uri to test the method. (upload the image from swagger UI)
can some help me?
Afik