retrofit.http.Path Java Examples

The following examples show how to use retrofit.http.Path. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@PUT("/groups/{groupId}")
Observable<Group> updateGroup(@Path("groupId") String groupId,
                              @Body GroupRequestData data);
 
Example #2
Source File: Version11xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@GET("/organizations/{orgName}/services/{serviceName}")
Api fetch(@Path("orgName") String orgName, @Path("serviceName") String serviceName);
 
Example #3
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@GET("/users/{id}/buckets")
Observable<List<Bucket>> getUserBuckets(@Path("id") long id, @Query("page") int page);
 
Example #4
Source File: Version11xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@PUT("/organizations/{orgName}/services/{serviceName}/versions/{version}")
Response configure(@Path("orgName") String orgName, @Path("serviceName") String serviceName,
                   @Path("version") String version, @Body ServiceConfig config);
 
Example #5
Source File: Version11xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@PUT("/organizations/{orgName}/services/{serviceName}/versions/{version}/definition")
Response setDefinition(@Path("orgName") String orgName, @Path("serviceName") String serviceName,
                       @Path("version") String version, @Header("Content-Type") String type, @Body TypedString content);
 
Example #6
Source File: ApiService.java    From materialup with Apache License 2.0 4 votes vote down vote up
@Headers("Accept: application/json")
@GET("/posts/{id}/sidebar")
Observable<MuResponse> getPostSidebar(@Path("id") long id);
 
Example #7
Source File: Version11xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@POST("/organizations/{orgName}/services/{serviceName}/versions")
Response createVersion(@Path("orgName") String orgName, @Path("serviceName") String serviceName, @Body ApiVersion apiVersion);
 
Example #8
Source File: GatewayApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@DELETE("/apis/{organizationId}/{apiId}/{version}")
Response retireApi(@Path("organizationId") String organizationId,
                   @Path("apiId") String apiId,
                   @Path("version") String version);
 
Example #9
Source File: GatewayApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@DELETE("/organizations/{organizationId}/apis/{apiId}/versions/{version}")
Response retireApi2(@Path("organizationId") String organizationId,
                    @Path("apiId") String apiId,
                    @Path("version") String version);
 
Example #10
Source File: Version12xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@POST("/organizations/{orgName}/apis/{apiName}/versions/{version}/policies")
Response addPolicy(@Path("orgName") String orgName, @Path("apiName") String apiName,
                   @Path("version") String version, @Body ApiPolicy policyConfig);
 
Example #11
Source File: GatewayApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@GET("/organizations/{organizationId}/apis/{apiId}/versions/{version}")
Api getApiVersion(@Path("organizationId") String organizationId,
                  @Path("apiId") String apiId,
                  @Path("version") String version);
 
Example #12
Source File: VideoResource.java    From Movie-Check with Apache License 2.0 4 votes vote down vote up
@GET("movie/{id}/videos")
Call<List<Video>> listAllByMovie(@Path("id") Long movieId, @Query("api_key") String apiKey);
 
Example #13
Source File: Version11xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@PUT("/organizations/{orgName}/services/{serviceName}/versions/{version}/policies/{policyId}")
Response configurePolicy(@Path("orgName") String orgName, @Path("serviceName") String serviceName,
                         @Path("version") String version, @Path("policyId") Long policyId, @Body ApiPolicy policyConfig);
 
Example #14
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@POST("/services/webhook/{id}")
Observable<Object> feedback(@Path("id") String id, @Body FeedbackRequestData data);
 
Example #15
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@DELETE("/groups/{id}")
Observable<Group> removeGroup(@Path("id") String id);
 
Example #16
Source File: IGetStoreV7WebService.java    From aptoide-client with GNU General Public License v2.0 4 votes vote down vote up
@POST("/{url}")
GetStoreWidgets postStoreWidget(@Path(value = "url", encode = false) String path, @Body Apiv7 api);
 
Example #17
Source File: GatewayApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
/**
 * New API with more REST-friendly structure.
 **/
@GET("/organizations/{organizationId}/apis/{apiId}/versions/{version}/endpoint")
ApiEndpoint getApiEndpoint2(@Path("organizationId") String organizationId,
                            @Path("apiId") String apiId,
                            @Path("version") String version);
 
Example #18
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@FormUrlEncoded
@PUT("/buckets/{id}/shots")
Observable<Response> addShotToBucket(@Path("id") long id, @Field("shot_id") long shot_id);
 
Example #19
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@DELETE("/buckets/{id}/shots")
Observable<Response> deleteShotFromBucket(@Path("id") long id, @Query("shot_id") long shot_id);
 
Example #20
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@FormUrlEncoded
@PUT("/shots/{id}/comments/{cid}")
Observable<Comment> editShotComments(@Path("id") long id, @Path("cid") long cid, @Field("body") String body);
 
Example #21
Source File: ApiService.java    From materialup with Apache License 2.0 4 votes vote down vote up
@Headers("Accept: application/json")
@GET("/users/{id}/posts")
Observable<MuResponse> getUserCreated(@Path("id") String id, @Query("page") int page);
 
Example #22
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@GET("/shots/{id}/buckets")
Observable<List<Bucket>> getShotBuckets(@Path("id") long id, @Query("page") int page);
 
Example #23
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@POST("/favorites/{id}/repost")
Observable<Message> favoritesRepostMessage(@Path("id") String messageId, @Body RepostData data);
 
Example #24
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@POST("/messages/{id}/repost")
Observable<Message> repostMessage(@Path("id") String messageId, @Body RepostData data);
 
Example #25
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@GET("/shots/{id}/attachments/{aid}")
Observable<Attachment> getAttachments(@Path("id") long id, @Path("aid") long aid);
 
Example #26
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@GET("/shots/{id}/rebounds")
Observable<List<Shot>> getShotRebounds(@Path("id") long id, @Query("page") int page);
 
Example #27
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@PUT("/messages/{messageId}")
Observable<Message> createMessageTag(@Path("messageId") String messageId, @Body MessageAddTagData data);
 
Example #28
Source File: GankApi.java    From GankMeizhi with Apache License 2.0 4 votes vote down vote up
@GET("/data/all/{limit}/{page}")
Observable<CommonGoodsBean> getAllGoods(
        @Path("limit") int limit,
        @Path("page") int page
);
 
Example #29
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@Multipart
@POST("/shots/{id}/attachments")
Observable<Response> createShotAttachments(@Path("id") long id, @Part("file") TypedFile file);
 
Example #30
Source File: ApiService.java    From droidddle with Apache License 2.0 4 votes vote down vote up
@GET("/shots/{id}/projects")
Observable<List<Project>> getShotProjects(@Path("id") long id, @Query("page") int page);