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
26
27 package com.buckosoft.BuckoVidLib.web.plex.client;
28
29 import javax.ws.rs.Consumes;
30 import javax.ws.rs.GET;
31 import javax.ws.rs.Path;
32 import javax.ws.rs.PathParam;
33 import javax.ws.rs.Produces;
34
35 import tv.plex.domain.MediaContainer;
36
37
38
39
40
41 @Path("/library")
42 @Produces("text/xml")
43 @Consumes("text/xml")
44 public interface LibraryService {
45
46 @GET
47 @Path("/")
48 @Produces("application/xml")
49 MediaContainer root();
50
51 @GET
52 @Path("/sections")
53 @Produces("application/xml")
54 MediaContainer sections();
55
56 @GET
57 @Path("/sections/{key}/all")
58 MediaContainer videosAll(@PathParam("key") int key);
59
60 @GET
61 @Path("/recentlyAdded")
62 MediaContainer recentlyAdded();
63
64 @GET
65 @Path("/metadata/{key}/children")
66 MediaContainer tvSeasons(@PathParam("key") int key);
67
68 @GET
69 @Path("/metadata/{key}/children")
70 MediaContainer tvShows(@PathParam("key") int key);
71 }