Created
August 25, 2017 21:27
-
-
Save ctataryn/279b820dd99fbc376d706d13fd567873 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rest("/validate") | |
.post() | |
.consumes(MediaType.APPLICATION_PDF_VALUE) | |
.produces(MediaType.TEXT_PLAIN_VALUE) | |
.to("direct:saveFile"); | |
from("direct:saveFile") | |
.transform() | |
.simple("Content Uploaded") | |
.to("file:outbox?fileName=myFile.pdf") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment