summaryrefslogtreecommitdiff
path: root/service/api.ice
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-03-06 08:30:08 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-03-06 08:30:08 +0000
commitafb5ebabf55c5c806e221ad15fca2fa0d5ef6d2b (patch)
treee63b671e8dd8e3813ed2fa76a82a5aa39c5c2667 /service/api.ice
downloadmirrorsearch-afb5ebabf55c5c806e221ad15fca2fa0d5ef6d2b.tar.bz2
mirrorsearch-afb5ebabf55c5c806e221ad15fca2fa0d5ef6d2b.tar.xz
mirrorsearch-afb5ebabf55c5c806e221ad15fca2fa0d5ef6d2b.zip
Initial commit, WIP
Diffstat (limited to 'service/api.ice')
-rw-r--r--service/api.ice19
1 files changed, 19 insertions, 0 deletions
diff --git a/service/api.ice b/service/api.ice
new file mode 100644
index 0000000..c207c3d
--- /dev/null
+++ b/service/api.ice
@@ -0,0 +1,19 @@
+#ifndef MIRRORSEARCH_API
+#define MIRRORSEARCH_API
+
+#include <models.ice>
+
+module MirrorSearch {
+ exception XmlError {
+ string msg;
+ };
+
+ interface Search {
+ idempotent SearchServices getServices();
+ idempotent SearchHits getMatches(string filename);
+ idempotent optional(0) string feelingLucky(string filename);
+ };
+};
+
+#endif
+