Java 类retrofit.http.EncodedPath 实例源码

项目:patrol-android    文件:PatrulatrulAPI.java   
@Multipart
@Headers({"Content-Type: multipart/form-data",
        "Accept: application/json",
        "Accept-Encoding: gzip, deflate"})
@POST("/api/{userID}/violation/create")
VideoAnswer uploadImage(@Part("photo") TypedFile photo,
                        @EncodedPath("userID") String userID,
                        @Part("latitude") double latitude,
                        @Part("longitude") double longitude);
项目:divide    文件:MockDataWebService.java   
@Override
public Response get(@Header("Authorization") String authToken, @EncodedPath("objectType") String objectType, @Body Collection<String> keys) {
    verifyAuthToken(authToken);
    try {
        Collection<TransientObject> got = dao.get(objectType, keys.toArray(new String[keys.size()]));
        return new GsonResponse("",200,"",null, got).build();
    } catch (DAO.DAOException e) {
        return new GsonResponse("",e.getStatusCode(),e.getMessage(), null, null).build();
    }
}
项目:getglue-java    文件:ObjectService.java   
/**
 * Creates a new check-in to the object with the authenticated user. Returns an Interaction
 * resource containing at least an id.
 */
@FormUrlEncoded
@POST("/{object-id}/checkins")
GetGlueInteraction checkin(
        @EncodedPath("object-id") String objectId,
        @Field("comment") String comment
);
项目:Flucso    文件:FFAPI.java   
@GET("/feedinfo/{feed_id}")
void get_profile(@EncodedPath("feed_id") String feed_id, Callback<FeedInfo> callback);
项目:Flucso    文件:FFAPI.java   
@GET("/entry/{entry_id}")
void get_entry_async(@EncodedPath("entry_id") String entry_id, Callback<Entry> callback);
项目:Flucso    文件:FFAPI.java   
@GET("/feed/{feed_id}")
Feed get_feed_normal(@EncodedPath("feed_id") String feed_id, @Query("start") int start, @Query("num") int num);
项目:Flucso    文件:FFAPI.java   
@GET("/updates/feed/{feed_id}")
Feed get_feed_updates(@EncodedPath("feed_id") String feed_id, @Query("num") int num,
    @Query("cursor") String cursor, @Query("timeout") int timeout, @Query("updates") int updates);
项目:Flucso    文件:FFAPI.java   
@GET("/entry/{entry_id}")
Entry get_entry(@EncodedPath("entry_id") String entry_id);
项目:divide    文件:MockDataWebService.java   
@Override
public Observable<Integer> count(@Header("Authorization") String authToken, @EncodedPath("objectType") String objectType) {
    verifyAuthToken(authToken);
    return Observable.from(dao.count(objectType));
}
项目:getglue-java    文件:InteractionService.java   
/**
 * Retrieves the specified interaction. Returns an Interaction resource.
 */
@GET("/{interaction-id}")
GetGlueInteractionResource get(
        @EncodedPath("interaction-id") String interactionId
);
项目:getglue-java    文件:InteractionService.java   
/**
 * Retrieves the collection of vote interactions attached to the specified parent interaction.
 * Returns an array of Interaction resources.
 */
@GET("/{interaction-id}/votes")
List<GetGlueInteraction> votes(
        @EncodedPath("interaction-id") String interactionId
);
项目:getglue-java    文件:InteractionService.java   
/**
 * Retrieves the collection of reply interactions attached to the specified parent interaction.
 * Returns an array of Interaction resources.
 */
@GET("/{interaction-id}/replies")
List<GetGlueInteraction> replies(
        @EncodedPath("interaction-id") String interactionId
);
项目:getglue-java    文件:ObjectService.java   
/**
 * Retrieve a GetGlue object. Can be any TV show, movie, sports team, game, or episode.
 */
@GET("/{object-id}")
GetGlueObjectResource get(
        @EncodedPath("object-id") String objectId
);
项目:getglue-java    文件:ObjectService.java   
/**
 * Creates a new check-in to the object with the authenticated user. Returns an Interaction
 * resource containing at least an id.
 */
@POST("/{object-id}/checkins")
GetGlueInteraction checkin(
        @EncodedPath("object-id") String objectId
);
项目:getglue-java    文件:ObjectService.java   
/**
 * Creates a new like for the object with the authenticated user. Returns an Interaction object
 * containing at least an id.
 */
@POST("/{object-id}/likes")
GetGlueInteraction like(
        @EncodedPath("object-id") String objectId
);
项目:aos-MediaLib    文件:Users.java   
/**
 * <b>OAuth Optional</b>
 *
 * <p> Get a user's ratings filtered by movies. You can filter for a specific rating between 1 and 10.
 *
 * @param username Example: "sean".
 * @param filter Filter for a specific rating.
 */
@GET("/users/{username}/ratings/movies{rating}")
List<RatedMovie> ratingsMovies(
        @Path("username") String username,
        @EncodedPath("rating") RatingsFilter filter,
        @EncodedQuery("extended") Extended extended
) throws OAuthUnauthorizedException;
项目:aos-MediaLib    文件:Users.java   
/**
 * <b>OAuth Optional</b>
 *
 * <p> Get a user's ratings filtered by shows. You can filter for a specific rating between 1 and 10.
 *
 * @param username Example: "sean".
 * @param filter Filter for a specific rating.
 */
@GET("/users/{username}/ratings/shows{rating}")
List<RatedShow> ratingsShows(
        @Path("username") String username,
        @EncodedPath("rating") RatingsFilter filter,
        @EncodedQuery("extended") Extended extended
) throws OAuthUnauthorizedException;
项目:aos-MediaLib    文件:Users.java   
/**
 * <b>OAuth Optional</b>
 *
 * <p> Get a user's ratings filtered by seasons. You can filter for a specific rating between 1 and 10.
 *
 * @param username Example: "sean".
 * @param filter Filter for a specific rating.
 */
@GET("/users/{username}/ratings/seasons{rating}")
List<RatedSeason> ratingsSeasons(
        @Path("username") String username,
        @EncodedPath("rating") RatingsFilter filter,
        @EncodedQuery("extended") Extended extended
) throws OAuthUnauthorizedException;
项目:aos-MediaLib    文件:Users.java   
/**
 * <b>OAuth Optional</b>
 *
 * <p> Get a user's ratings filtered by episodes. You can filter for a specific rating between 1 and 10.
 *
 * @param username Example: "sean".
 * @param filter Filter for a specific rating.
 */
@GET("/users/{username}/ratings/episodes{rating}")
List<RatedEpisode> ratingsEpisodes(
        @Path("username") String username,
        @EncodedPath("rating") RatingsFilter filter,
        @EncodedQuery("extended") Extended extended
) throws OAuthUnauthorizedException;
项目:aos-MediaLib    文件:Sync.java   
/**
 * <b>OAuth Required</b>
 *
 * <p> Get a user's ratings filtered by movies. You can filter for a specific rating between 1 and 10.
 *
 * @param filter Filter for a specific rating.
 */
@GET("/sync/ratings/movies{rating}")
List<RatedMovie> ratingsMovies(
        @EncodedPath("rating") RatingsFilter filter,
        @EncodedQuery("extended") Extended extended
) throws OAuthUnauthorizedException;
项目:aos-MediaLib    文件:Sync.java   
/**
 * <b>OAuth Required</b>
 *
 * <p> Get a user's ratings filtered by shows. You can filter for a specific rating between 1 and 10.
 *
 * @param filter Filter for a specific rating.
 */
@GET("/sync/ratings/shows{rating}")
List<RatedShow> ratingsShows(
        @EncodedPath("rating") RatingsFilter filter,
        @EncodedQuery("extended") Extended extended
) throws OAuthUnauthorizedException;
项目:aos-MediaLib    文件:Sync.java   
/**
 * <b>OAuth Required</b>
 *
 * <p> Get a user's ratings filtered by seasons. You can filter for a specific rating between 1 and 10.
 *
 * @param filter Filter for a specific rating.
 */
@GET("/sync/ratings/seasons{rating}")
List<RatedSeason> ratingsSeasons(
        @EncodedPath("rating") RatingsFilter filter,
        @EncodedQuery("extended") Extended extended
) throws OAuthUnauthorizedException;
项目:aos-MediaLib    文件:Sync.java   
/**
 * <b>OAuth Required</b>
 *
 * <p> Get a user's ratings filtered by episodes. You can filter for a specific rating between 1 and 10.
 *
 * @param filter Filter for a specific rating.
 */
@GET("/sync/ratings/episodes{rating}")
List<RatedEpisode> ratingsEpisodes(
        @EncodedPath("rating") RatingsFilter filter,
        @EncodedQuery("extended") Extended extended
) throws OAuthUnauthorizedException;
项目:getglue-java    文件:ObjectService.java   
/**
 * Retrieve a pageable collection of all feed interactions around the specified object. A feed
 * is a collection of curated interactions selected from the set of all interactions. Returns an
 * array of Interaction resources.
 */
@GET("/{object-id}/feed")
List<GetGlueInteraction> feed(
        @EncodedPath("object-id") String objectId
);
项目:on-this-day    文件:ArchiveService.java   
@GET("/{path}&output=json") Observable<Archive> getShowData(@EncodedPath("path") String path);
项目:tapchat-android    文件:TapchatAPI.java   
@GET("/{path}") @Streaming Response oobInclude(@EncodedPath("path") String path);