summaryrefslogtreecommitdiff
path: root/service/api.ice
blob: a8c50e94995309261f02b97b3bba28335a4bb817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef MIRRORSEARCH_API
#define MIRRORSEARCH_API

#include <models.ice>

module MirrorSearch {
	["cpp:ice_print"]
	exception XmlError {
		string msg;
	};

	["cpp:ice_print"]
	exception CurlError {
		string msg;
	};

	interface Search {
		idempotent SearchServices getServices();
		idempotent SearchHits getMatches(string filename) throws XmlError, CurlError;
		idempotent optional(0) string feelingLucky(string filename) throws XmlError, CurlError;
	};
};

#endif