本文整理了Java中retrofit.http.Path.<init>()
方法的一些代码示例,展示了Path.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Path.<init>()
方法的具体详情如下:
包路径:retrofit.http.Path
类名称:Path
方法名:<init>
暂无
代码示例来源:origin: konmik/nucleus
@GET("/jokes/{id}")
Observable<ItemResponse> getItem(@Query("firstName") String firstName, @Query("lastName") String lastName, @Path("id") int id);
}
代码示例来源:origin: spinnaker/kayenta
@DELETE("/{ownerApp}/{configType}/{configName}")
Response delete(@Path("ownerApp") String ownerApp,
@Path("configType") String configType,
@Path("configName") String configName);
代码示例来源:origin: spinnaker/kayenta
@GET("/payload/{ownerApp}/{configType}/{configName}")
String get(@Path("ownerApp") String ownerApp,
@Path("configType") String configType,
@Path("configName") String configName);
代码示例来源:origin: THEONE10211024/RxJavaSamples
/**
* See https://developer.github.com/v3/repos/#list-contributors
*/
@GET("/repos/{owner}/{repo}/contributors")
Observable<List<Contributor>> contributors(@Path("owner") String owner,
@Path("repo") String repo);
代码示例来源:origin: spinnaker/kayenta
@GET("/{ownerApp}/{configType}")
String list(@Path("ownerApp") String ownerApp,
@Path("configType") String configType);
代码示例来源:origin: spinnaker/kayenta
@POST("/{ownerApp}/{configType}/{configName}")
Response post(@Path("ownerApp") String ownerApp,
@Path("configType") String configType,
@Path("configName") String configName,
@Body RequestBody config);
}
代码示例来源:origin: THEONE10211024/RxJavaSamples
@GET("/repos/{owner}/{repo}/contributors")
List<Contributor> getContributors(@Path("owner") String owner, @Path("repo") String repo);
代码示例来源:origin: THEONE10211024/RxJavaSamples
/**
* See https://developer.github.com/v3/users/
*/
@GET("/users/{user}")
Observable<User> user(@Path("user") String user);
代码示例来源:origin: THEONE10211024/RxJavaSamples
/**
* See https://developer.github.com/v3/users/
*/
@GET("/users/{user}")
User getUser(@Path("user") String user);
}
代码示例来源:origin: yigit/dev-summit-architecture-demo
@GET("/user_feed/{userId}.json")
Call<FeedResponse> userFeed(@Path("userId") long userId, @Query("since") long since);
代码示例来源:origin: spinnaker/kayenta
@Headers("Accept: application/json")
@GET("/v1/accounts/{application_key}/query")
NewRelicTimeSeries getTimeSeries(@Header("X-Query-Key") String apiKey,
@Path("application_key") String applicationKey, @Query("nrql") String query);
}
代码示例来源:origin: com.netflix.spinnaker.fiat/fiat-api
/**
* @param userId The username of the user
* @param resourceType The resource type in question (application, account, etc.)
* @param resourceName The name of the resource
* @param authorization The authorization in question (read, write, etc)
* @return True if the user has access to the specified resource.
*/
@GET("/authorize/{userId}/{resourceType}/{resourceName}/{authorization}")
Response hasAuthorization(@Path("userId") String userId,
@Path("resourceType") String resourceType,
@Path("resourceName") String resourceName,
@Path("authorization") String authorization);
代码示例来源:origin: com.netflix.spinnaker.fiat/fiat-api
/**
* @param userId The user being logged out
* @return ignored.
*/
@DELETE("/roles/{userId}")
Response logoutUser(@Path("userId") String userId);
}
代码示例来源:origin: com.hp.autonomy.hod/java-hod-client
@GET(USER_BASE_PATH + "/group" + V1)
Response listUserGroups(
@Header(TOKEN_HEADER) AuthenticationToken<?, ?> token,
@Path(USER_STORE_VARIABLE) ResourceIdentifier userStore,
@Path(USER_UUID_VARIABLE) UUID userUuid
) throws HodErrorException;
代码示例来源:origin: tomahawk-player/tomahawk-android
@GET("/tokens/fetch/{tokentype}")
HatchetAuthResponse getAccessToken(
@Header("Authorization") String bearerAccessToken,
@Path("tokentype") String tokentype
);
代码示例来源:origin: tomahawk-player/tomahawk-android
@DELETE("/playlists/{playlist-id}")
Response deletePlaylists(
@Header("Authorization") String accesstoken,
@Path("playlist-id") String playlist_id
);
代码示例来源:origin: tomahawk-player/tomahawk-android
@DELETE("/relationships/{relationship-id}")
Response deleteRelationShip(
@Header("Authorization") String accesstoken,
@Path("relationship-id") String relationship_id
);
代码示例来源:origin: com.netflix.spinnaker.fiat/fiat-api
/**
* @param userId The user being logged in
* @param ignored ignored.
* @return ignored.
*/
@POST("/roles/{userId}")
Response loginUser(@Path("userId") String userId, @Body String ignored /* retrofit requires this */);
代码示例来源:origin: tomahawk-player/tomahawk-android
@PUT("/playlists/{playlist-id}")
Response putPlaylists(
@Header("Authorization") String accesstoken,
@Path("playlist-id") String playlist_id,
@Body TypedInput rawBody
);
代码示例来源:origin: tomahawk-player/tomahawk-android
@DELETE("/playlistEntries/{entry-id}")
Response deletePlaylistsPlaylistEntries(
@Header("Authorization") String accesstoken,
@Path("entry-id") String entry_id,
@Query("playlist_id") String playlist_id
);
内容来源于网络,如有侵权,请联系作者删除!