com.epam.reportportal.service.ReportPortalClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-java Show documentation
Show all versions of client-java Show documentation
A application used as an example on how to set up pushing its components to the Central Repository .
The newest version!
/*
* Copyright 2021 EPAM Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.epam.reportportal.service;
import com.epam.ta.reportportal.ws.model.*;
import com.epam.ta.reportportal.ws.model.item.ItemCreatedRS;
import com.epam.ta.reportportal.ws.model.launch.LaunchResource;
import com.epam.ta.reportportal.ws.model.launch.MergeLaunchesRQ;
import com.epam.ta.reportportal.ws.model.launch.StartLaunchRQ;
import com.epam.ta.reportportal.ws.model.launch.StartLaunchRS;
import com.epam.ta.reportportal.ws.model.log.SaveLogRQ;
import io.reactivex.Maybe;
import okhttp3.MultipartBody;
import retrofit2.http.*;
import java.util.List;
public interface ReportPortalClient {
@POST("v1/{projectName}/launch")
Maybe startLaunch(@Body StartLaunchRQ rq);
@POST("v1/{projectName}/launch/merge")
Maybe mergeLaunches(@Body MergeLaunchesRQ rq);
@PUT("v1/{projectName}/launch/{launchId}/finish")
Maybe finishLaunch(@Path("launchId") String launch, @Body FinishExecutionRQ rq);
@POST("v1/{projectName}/item")
Maybe startTestItem(@Body StartTestItemRQ rq);
@POST("v1/{projectName}/item/{parent}")
Maybe startTestItem(@Path("parent") String parent, @Body StartTestItemRQ rq);
@PUT("v1/{projectName}/item/{itemId}")
Maybe finishTestItem(@Path("itemId") String itemId, @Body FinishTestItemRQ rq);
@POST("v1/{projectName}/log")
Maybe log(@Body SaveLogRQ rq);
@Multipart
@POST("v1/{projectName}/log")
Maybe log(@Part List parts);
@GET("v1/{projectName}/launch/uuid/{launchUuid}")
Maybe getLaunchByUuid(@Path("launchUuid") String launchUuid);
@GET("v1/{projectName}/item/uuid/{itemUuid}")
Maybe getItemByUuid(@Path("itemUuid") String itemUuid);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy