diff --git a/assignments/assignment2a/src/main/java/org/magnum/mobilecloud/video/client/VideoSvcApi.java b/assignments/assignment2a/src/main/java/org/magnum/mobilecloud/video/client/VideoSvcApi.java index 48ce09d..9eb9b39 100644 --- a/assignments/assignment2a/src/main/java/org/magnum/mobilecloud/video/client/VideoSvcApi.java +++ b/assignments/assignment2a/src/main/java/org/magnum/mobilecloud/video/client/VideoSvcApi.java @@ -33,33 +33,44 @@ public interface VideoSvcApi { public static final String ID_PARAMETER = "id"; + public static final String RATING_PARAMETER = "rating"; + public static final String TOKEN_PATH = "/oauth/token"; // The path where we expect the VideoSvc to live public static final String VIDEO_SVC_PATH = "/video"; + public static final String VIDEO_ITEM_PATH + = VIDEO_SVC_PATH + "/{"+VideoSvcApi.ID_PARAMETER+"}"; + // The path where we expect the VideoSvc to live - public static final String VIDEO_DATA_PATH = VIDEO_SVC_PATH + "/{"+VideoSvcApi.ID_PARAMETER+"}/data"; + public static final String VIDEO_DATA_PATH = VIDEO_ITEM_PATH + "/data"; + + public static final String VIDEO_RATING_PATH = VIDEO_ITEM_PATH + "/rating"; + public static final String VIDEO_RATE_VIDEO_PATH + = VIDEO_RATING_PATH + "/{"+VideoSvcApi.RATING_PARAMETER+"}"; @GET(VIDEO_SVC_PATH) public Collection