本文整理了Java中retrofit.http.Body.<init>()
方法的一些代码示例,展示了Body.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Body.<init>()
方法的具体详情如下:
包路径:retrofit.http.Body
类名称:Body
方法名:<init>
暂无
代码示例来源:origin: spinnaker/kayenta
@POST("/judge")
CanaryJudgeResult judge(@Body RemoteJudgeRequest body);
}
代码示例来源: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: spinnaker/kayenta
/**
* Executes a signal flow program.
*
* @param accessToken The SignalFx API Access token associated with the organization that you are querying.
* @param startEpochMilli (Optional) start timestamp in milliseconds since epoch
* @param endEpochMilli (Optional) stop timestamp in milliseconds since epoch
* @param resolution (Optional) the minimum desired data resolution, in milliseconds
* @param maxDelay (Optional) desired maximum data delay, in milliseconds between 0 (for automatic maximum delay) and 900000
* @param immediate (Optional) whether to adjust the stop timestamp so that the computation doesn't wait for future data to be available
* @param program The signal flow program to execute
* @return The list of channel messages from the signal flow output
*/
@POST("/v2/signalflow/execute")
SignalFlowExecutionResult executeSignalFlowProgram(@Header("X-SF-TOKEN") String accessToken,
@Query("start") long startEpochMilli,
@Query("stop") long endEpochMilli,
@Query("resolution") long resolution,
@Query("maxDelay") long maxDelay,
@Query("immediate") boolean immediate,
@Body String program);
}
代码示例来源:origin: org.kurento/kurento-repository-client
/**
* Creates a new repository item with the provided metadata, ready for media recording.
*
* @param metadata
* a map of values. Can be empty but <strong>not null</strong>.
* @return a {@link RepositoryItemRecorder} containing the item's id and an URL through which
* Kurento Media Server can record media sent by the client
*/
@POST("/repo/item")
RepositoryItemRecorder createRepositoryItem(@Body Map<String, String> metadata);
代码示例来源:origin: org.kurento/kurento-repository-client
/**
* Searches for repository items by each pair of attributes and their expected values.
*
* @param searchValues
* pairs of attributes and their values
* @return a {@link Set}<{@link String}> with identifiers of the repository items that were
* found
*/
@POST("/repo/item/find")
Set<String> simpleFindItems(@Body Map<String, String> searchValues);
代码示例来源:origin: tomahawk-player/tomahawk-android
@POST("/playbacklogEntries")
Response postPlaybackLogEntries(
@Header("Authorization") String accesstoken,
@Body TypedInput rawBody
);
代码示例来源:origin: tomahawk-player/tomahawk-android
@POST("/playlistEntries")
HatchetPlaylistEntries postPlaylistsPlaylistEntries(
@Header("Authorization") String accesstoken,
@Body TypedInput rawBody
);
代码示例来源:origin: tomahawk-player/tomahawk-android
@POST("/playlists")
HatchetPlaylistEntries postPlaylists(
@Header("Authorization") String accesstoken,
@Body TypedInput rawBody
);
代码示例来源:origin: tomahawk-player/tomahawk-android
@POST("/relationships")
HatchetPlaylistEntries postRelationship(
@Header("Authorization") String accesstoken,
@Body TypedInput rawBody
);
代码示例来源: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: NightscoutFoundation/xDrip
@POST("General/AuthenticatePublisherAccount")
Call<String> authenticatePublisherAccount(@Query("sessionId") String sessionId,
@Query("serialNumber") String serialNumber,
@Body Map<String, String> body);
// maybe needs ?sessionId={YourSessionId}&serialNumber={YourdexcomSerialNumber}
代码示例来源:origin: spinnaker/halyard
@PUT("/v1/config/deployments/{deploymentName}/persistentStorage/")
DaemonTask<Halconfig, Void> setPersistentStorage(
@Path("deploymentName") String deploymentName,
@Query("validate") boolean validate,
@Body PersistentStorage persistentStorage);
代码示例来源:origin: spinnaker/halyard
@PUT("/v1/config/deployments/{deploymentName}/webhook/")
DaemonTask<Halconfig, Void> setWebhook(
@Path("deploymentName") String deploymentName,
@Query("validate") boolean validate,
@Body Webhook webhook);
代码示例来源:origin: spinnaker/halyard
@PUT("/v1/config/deployments/{deploymentName}/webhook/trust/")
DaemonTask<Halconfig, Void> setWebhookTrust(
@Path("deploymentName") String deploymentName,
@Query("validate") boolean validate,
@Body WebhookTrust webhookTrust);
代码示例来源:origin: spinnaker/halyard
@PUT("/v1/config/deployments/{deploymentName}/persistentStorage/{persistentStoreType}/")
DaemonTask<Halconfig, Void> setPersistentStore(
@Path("deploymentName") String deploymentName,
@Path("persistentStoreType") String persistentStoreType,
@Query("validate") boolean validate,
@Body PersistentStore persistentStore);
代码示例来源:origin: spinnaker/halyard
@POST("/v1/config/deployments/{deploymentName}/pubsubs/{pubsubName}/publishers/")
DaemonTask<Halconfig, Void> addPublisher(
@Path("deploymentName") String deploymentName,
@Path("pubsubName") String pubsubName,
@Query("validate") boolean validate,
@Body Publisher publisher);
代码示例来源:origin: spinnaker/halyard
@PUT("/v1/config/deployments/{deploymentName}/metricStores/{metricStoreType}/enabled/")
DaemonTask<Halconfig, Void> setMetricStoreEnabled(
@Path("deploymentName") String deploymentName,
@Path("metricStoreType") String metricStoreType,
@Query("validate") boolean validate,
@Body boolean enabled);
代码示例来源:origin: com.netflix.spinnaker.halyard/halyard-cli
@PUT("/v1/config/deployments/{deploymentName}/providers/{providerName}/")
DaemonTask<Halconfig, Object> setProvider(
@Path("deploymentName") String deploymentName,
@Path("providerName") String providerName,
@Query("validate") boolean validate,
@Body Provider provider);
代码示例来源:origin: spinnaker/halyard
@PUT("/v1/config/deployments/{deploymentName}/providers/{providerName}/clusters/cluster/{clusterName}/")
DaemonTask<Halconfig, Void> setCluster(
@Path("deploymentName") String deploymentName,
@Path("providerName") String providerName,
@Path("clusterName") String clusterName,
@Query("validate") boolean validate,
@Body Cluster cluster);
内容来源于网络,如有侵权,请联系作者删除!