Package 

Interface XrayApi

    • Method Detail

      • getTestsOfTestPlan

        @GET(value = "/rest/raven/1.0/api/testplan/{testPlanKey}/test") abstract Call<List<XrayTest>> getTestsOfTestPlan(@Path(value = "testPlanKey") String testPlanKey)
      • addTestToTestPlans

        @POST(value = "/rest/raven/1.0/api/testplan/{testPlanKey}/test") abstract Call<ResponseBody> addTestToTestPlans(@Path(value = "testPlanKey") String testPlanKey, @Body() XrayUpdateTest update)
      • getTests

        @GET(value = "/rest/raven/1.0/api/test") abstract Call<List<XrayTest>> getTests(@Query(value = "keys") String testKeys)
      • getAttachment

        @GET(value = "/plugins/servlet/raven/attachment/{id}/{fileName}") abstract Call<ResponseBody> getAttachment(@Path(value = "id") Long id, @Path(value = "fileName") String fileName)
      • saveStep

        @PUT(value = "/rest/raven/1.0/api/test/{testKey}/step") abstract Call<ResponseBody> saveStep(@Path(value = "testKey") String testKey, @Body() XrayBuildTestStep execution)
      • deleteStep

        @DELETE(value = "/rest/raven/1.0/api/test/{testKey}/step/{id}") abstract Call<ResponseBody> deleteStep(@Path(value = "testKey") String testKey, @Path(value = "id") Long stepId)
      • addPrecondition

        @POST(value = "/rest/raven/1.0/api/precondition/{preConditionKey}/test") abstract Call<ResponseBody> addPrecondition(@Path(value = "preConditionKey") String preConditionKey, @Body() XrayUpdateTest associate)
      • linkIssue

        @POST(value = "/rest/api/2/issueLink") abstract Call<ResponseBody> linkIssue(@Body() JiraIssueLink link)
      • updateTest

        @PUT(value = "/rest/api/2/issue/{id}") abstract Call<ResponseBody> updateTest(@Path(value = "id") String id, @Body() JiraTest test)
      • addAttachment

        @Multipart()@POST(value = "/rest/api/2/issue/{id}/attachments") abstract Call<List<JiraAttachment>> addAttachment(@Path(value = "id") String id, @Part() MultipartBody.Part body, @Header(value = "X-Atlassian-Token") String token)
      • getIssue

        @GET(value = "/rest/api/2/issue/{id}") abstract Call<ResponseBody> getIssue(@Path(value = "id") String id)
      • searchIssue

        @GET(value = "/rest/api/2/search") abstract Call<ResponseBody> searchIssue(@Query(value = "jql") String jql)