Java Code Examples for retrofit2.http.DELETE

The following examples show how to use retrofit2.http.DELETE. These examples are extracted from open source projects. 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 want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: Endpoint2mock2   Source File: MockAnnotationProccessor.java    License: MIT License 6 votes vote down vote up
private static String extractPath(Element element) throws NoAnnotationException {
    GET getAnnotation = element.getAnnotation(GET.class);
    if (getAnnotation != null) {
        return getAnnotation.value();
    }

    POST postAnnotation = element.getAnnotation(POST.class);
    if (postAnnotation != null) {
        return postAnnotation.value();
    }

    DELETE deleteAnnotation = element.getAnnotation(DELETE.class);
    if (deleteAnnotation != null) {
        return deleteAnnotation.value();
    }

    PUT putAnnotation = element.getAnnotation(PUT.class);
    if (putAnnotation != null) {
        return putAnnotation.value();
    }

    throw new NoAnnotationException();
}
 
Example 2
Source Project: rancher-java-sdk   Source File: ExtensionPointService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("extensionPoint/{id}")
Call<Response> delete(@Path("id") String id);
 
Example 3
Source Project: kucoin-java-sdk   Source File: OrderAPIRetrofit.java    License: MIT License 4 votes vote down vote up
@DELETE("api/v1/orders/{orderId}")
Call<KucoinResponse<OrderCancelResponse>> cancelOrder(@Path("orderId") String orderId);
 
Example 4
Source Project: rancher-java-sdk   Source File: PhysicalHostService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("physicalHost/{id}")
Call<Response> delete(@Path("id") String id);
 
Example 5
Source Project: rancher-java-sdk   Source File: HaConfigInputService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("haConfigInput/{id}")
Call<Response> delete(@Path("id") String id);
 
Example 6
Source Project: FastWaiMai   Source File: RxRestService.java    License: MIT License 4 votes vote down vote up
@DELETE
Observable<String> delete(@Url String url, @QueryMap Map<String, Object> params);
 
Example 7
Source Project: xDrip-plus   Source File: TidepoolUploader.java    License: GNU General Public License v3.0 4 votes vote down vote up
@DELETE("/v1/datasets/{dataSetId}")
Call<MDatasetReply> deleteDataSet(@Header(SESSION_TOKEN_HEADER) String token, @Path("dataSetId") String id);
 
Example 8
@DELETE("/api/multi/multipath")
Call<String> deleteMultiReddit(@HeaderMap Map<String, String> headers, @Query("multipath") String multipath);
 
Example 9
Source Project: 1Rramp-Android   Source File: HaprampAPI.java    License: MIT License 4 votes vote down vote up
@DELETE("competitions/{competition_id}")
Call<DeleteCompetitionResponse> deleteCompetition(@Path("competition_id") String comp_id);
 
Example 10
Source Project: 1Rramp-Android   Source File: HaprampAPI.java    License: MIT License 4 votes vote down vote up
@DELETE("drafts/{draft_id}")
Call<DraftUploadResponse> deleteDraft(@Path("draft_id") long draftId);
 
Example 11
Source Project: rancher-java-sdk   Source File: RackspaceConfigService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("rackspaceConfig/{id}")
Call<Response> delete(@Path("id") String id);
 
Example 12
Source Project: rancher-java-sdk   Source File: AzureConfigService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("azureConfig/{id}")
Call<Response> delete(@Path("id") String id);
 
Example 13
Source Project: Mysplash   Source File: FollowApi.java    License: GNU Lesser General Public License v3.0 4 votes vote down vote up
@DELETE(UrlCollection.UNSPLASH_NODE_API_URL + "users/{username}/follow")
Observable<ResponseBody> cancelFollow(@Path("username") String username);
 
Example 14
Source Project: rancher-java-sdk   Source File: BackupTargetService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("backupTarget/{id}")
Call<Response> delete(@Path("id") String id);
 
Example 15
Source Project: rancher-java-sdk   Source File: SubscribeService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("subscribe/{id}")
Call<Response> delete(@Path("id") String id);
 
Example 16
@DELETE("externalStoragePoolEvent/{id}")
Call<Response> delete(@Path("id") String id);
 
Example 17
Source Project: Anago   Source File: GitHubApiClient.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("/user/starred/{user}/{repo}")
Single<Void> deleteStar(@Header("Authorization") String authorization,
                        @Path("user") String user,
                        @Path("repo") String repo);
 
Example 18
Source Project: 600SeriesAndroidUploader   Source File: EntriesEndpoints.java    License: MIT License 4 votes vote down vote up
@DELETE("/api/v1/entries/sgv.json")
Call<ResponseBody> deleteCleanupItemsNonKeyed(@Query("find[date][$gte]") String from,
                                              @Query("find[date][$lte]") String to,
                                              @Query("find[key600][$not][$exists]") String empty);
 
Example 19
Source Project: rancher-java-sdk   Source File: DockerBuildService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("dockerBuild/{id}")
Call<Response> delete(@Path("id") String id);
 
Example 20
Source Project: rancher-java-sdk   Source File: DnsServiceService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("dnsService/{id}")
Call<Response> delete(@Path("id") String id);
 
Example 21
Source Project: Protein   Source File: UserService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("/v1/users/{user_id}/follow")
Observable<Response<Body>> unfollow(@Path("user_id") long userId);
 
Example 22
Source Project: android-proguards   Source File: DribbbleService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("v1/shots/{shot}/comments/{id}")
Call<Void> deleteComment(@Path("shot") long shotId,
                         @Path("id") long commentId);
 
Example 23
Source Project: AndroidDemo   Source File: BlogServer.java    License: MIT License 4 votes vote down vote up
@DELETE("delete")
Call<Result<String>> deleteBlog(@Query("id") String id);
 
Example 24
Source Project: rancher-java-sdk   Source File: PullTaskService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("pullTask/{id}")
Call<Response> delete(@Path("id") String id);
 
Example 25
Source Project: octoandroid   Source File: OctoApi.java    License: GNU General Public License v3.0 4 votes vote down vote up
@DELETE
Observable<Object> deleteFile(@Url String url);
 
Example 26
Source Project: kong-java-client   Source File: RetrofitApiPluginService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("/apis/{api}/plugins/{id}")
Call<Void> deletePluginForApi(@Path("api") String apiNameOrId, @Path("id") String pluginNameOrId);
 
Example 27
Source Project: rancher-java-sdk   Source File: InstanceService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("instance/{id}")
Call<Response> delete(@Path("id") String id);
 
Example 28
Source Project: rancher-java-sdk   Source File: LdapconfigService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("ldapconfig/{id}")
Call<Response> delete(@Path("id") String id);
 
Example 29
Source Project: rancher-java-sdk   Source File: ContainerExecService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("containerExec/{id}")
Call<Response> delete(@Path("id") String id);
 
Example 30
Source Project: rancher-java-sdk   Source File: RegistrationTokenService.java    License: Apache License 2.0 4 votes vote down vote up
@DELETE("registrationToken/{id}")
Call<Response> delete(@Path("id") String id);