Interface PhilterService


public interface PhilterService
  • Method Details

    • filter

      @Headers({"Accept: text/plain","Content-Type: text/plain"}) @POST("/api/filter") retrofit2.Call<String> filter(@Query("c") String context, @Query("d") String documentId, @Query("p") String policyName, @Body String text)
    • filter

      @Streaming @Headers({"Accept: application/zip","Content-Type: application/pdf"}) @POST("/api/filter") retrofit2.Call<okhttp3.ResponseBody> filter(@Query("c") String context, @Query("d") String documentId, @Query("p") String policyName, @Body okhttp3.RequestBody bytes)
    • explain

      @Headers({"Accept: application/json","Content-Type: text/plain"}) @POST("/api/explain") retrofit2.Call<ExplainResponse> explain(@Query("c") String context, @Query("d") String documentId, @Query("p") String policyName, @Body String text)
    • status

      @GET("/api/status") retrofit2.Call<String> status()
    • Policy

      @Headers("Accept: application/json") @GET("/api/policies") retrofit2.Call<List<String>> Policy()
    • Policy

      @Headers("Accept: text/plain") @GET("/api/policies/{name}") retrofit2.Call<String> Policy(@Path("name") String policyName)
    • savePolicy

      @Headers("Content-Type: application/json") @POST("/api/policies") retrofit2.Call<Void> savePolicy(@Body String json)
    • deletePolicy

      @DELETE("/api/policies/{name}") retrofit2.Call<Void> deletePolicy(@Path("name") String policyName)
    • getAlerts

      @GET("/api/alerts") retrofit2.Call<List<Alert>> getAlerts()
    • deleteAlert

      @DELETE("/api/alerts/{alertId}") retrofit2.Call<Void> deleteAlert(@Path("alertId") String alertId)