summaryrefslogtreecommitdiff
path: root/libtmdb/tmdb-api.ice
blob: e116f2d13c945f4d4448181e6286e9dedb4d38fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef TMDB_API_ICE
#define TMDB_API_ICE

#include "tmdb-models.ice"

module TMDb {
	exception HttpException {
		int code;
	};
	interface API {
		idempotent SearchMultiResults SearchMulti(string query, optional(0) int page);
		idempotent SearchMovieResults SearchMovies(string query, optional(1) int year, optional(0) int page);
		idempotent SearchPersonResults SearchPersons(string query, optional(0) int page);
		idempotent SearchTvResults SearchTv(string query, optional(0) int page);
		idempotent Movie GetMovie(int id);
		idempotent TvSeries GetTvSeries(int id);
	};
};

#endif