@ApiResponses(value = { @ApiResponse(code = 200, message = "Successful retrieval of user detail"),
@ApiResponse(code = 404, message = "User with given username does not exist"),
@ApiResponse(code = 500, message = "Internal server error") })
@POST
@Path("/pdf")
@Consumes({ MediaType.MULTIPART_FORM_DATA })
@Produces({"image/jpeg,image/png"})
//@Produces("text/plain")
public Response uploadPdfFile(@FormDataParam("file") InputStream fileInputStream,@FormDataParam("file") FormDataContentDisposition fileMetaData) throws Exception {
...
}
@ApiModelProperty(value = "pet status in the store", allowableValues = "available,pending,sold")
@ApiOperation(value = "New User can register by himself by using this service", notes = "we have to provide valid email Id and Mobile number then user will get the verification mail or otp ")
@Produces({ "application/json", "application/xml" })
@ApiModel(value = "UserSelfRegister", discriminator = "foo", subTypes = { UserSelfRegister.class })
@Api(value = "User Registration")
@ApiResponse(code = 404, message = "User with given username does not exist"),
@ApiResponse(code = 500, message = "Internal server error") })
@POST
@Path("/pdf")
@Consumes({ MediaType.MULTIPART_FORM_DATA })
@Produces({"image/jpeg,image/png"})
//@Produces("text/plain")
public Response uploadPdfFile(@FormDataParam("file") InputStream fileInputStream,@FormDataParam("file") FormDataContentDisposition fileMetaData) throws Exception {
...
}
@ApiModelProperty(value = "pet status in the store", allowableValues = "available,pending,sold")
@ApiOperation(value = "New User can register by himself by using this service", notes = "we have to provide valid email Id and Mobile number then user will get the verification mail or otp ")
@Produces({ "application/json", "application/xml" })
@ApiModel(value = "UserSelfRegister", discriminator = "foo", subTypes = { UserSelfRegister.class })
@Api(value = "User Registration")
Comments
Post a Comment