From 9a75adb0ab26ccada094d8f67857b140416ebc07 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Fri, 6 Jan 2017 14:35:07 +0100 Subject: [PATCH] Simplify the attachments demo by getting rid of the web API and just using the RPC interface directly. The web API in this case wasn't actually adding anything that had to be server side. --- .../Attachment_Demo__Run_Recipient.xml | 4 +- .../Attachment_Demo__Run_Sender.xml | 4 +- docs/source/tutorial-attachments.rst | 120 ++++++++-------- samples/attachment-demo/build.gradle | 5 + .../attachmentdemo/AttachmentDemoTest.kt | 30 ++-- .../corda/attachmentdemo/AttachmentDemo.kt | 135 +++++++++++++----- .../attachmentdemo/AttachmentDemoClientApi.kt | 35 ----- .../attachmentdemo/api/AttachmentDemoApi.kt | 97 ------------- .../plugin/AttachmentDemoPlugin.kt | 6 +- 9 files changed, 189 insertions(+), 247 deletions(-) delete mode 100644 samples/attachment-demo/src/main/kotlin/net/corda/attachmentdemo/AttachmentDemoClientApi.kt delete mode 100644 samples/attachment-demo/src/main/kotlin/net/corda/attachmentdemo/api/AttachmentDemoApi.kt diff --git a/.idea/runConfigurations/Attachment_Demo__Run_Recipient.xml b/.idea/runConfigurations/Attachment_Demo__Run_Recipient.xml index c67e0a97b0..779337ad24 100644 --- a/.idea/runConfigurations/Attachment_Demo__Run_Recipient.xml +++ b/.idea/runConfigurations/Attachment_Demo__Run_Recipient.xml @@ -4,7 +4,7 @@