Interface PhilterService
public interface PhilterService
Retrofit definition of Philter's HTTP API (version 4.0.0).
-
Method Summary
Modifier and TypeMethodDescriptionretrofit2.Call<String> compilePolicy(String text) retrofit2.Call<GenericResponse> createContext(String name, Boolean entityTypeDisambiguation, Boolean ledger) retrofit2.Call<LegalHoldResponse> createHold(String owner, LegalHoldRequest request) retrofit2.Call<GenericResponse> createRedactList(String owner, String json) retrofit2.Call<GenericResponse> deleteContext(String name) retrofit2.Call<GenericResponse> deleteContextEntries(String name) retrofit2.Call<GenericResponse> deleteContextEntry(String name, String entryId) retrofit2.Call<Void> deleteDocument(String documentId, String owner) retrofit2.Call<Void> deleteHold(String reference, String owner) retrofit2.Call<Void> deleteList(String list, String owner) retrofit2.Call<Void> deletePolicy(String policyName, String owner) retrofit2.Call<ExplainResponse> retrofit2.Call<String> exportContextEntries(String name, String owner) retrofit2.Call<String> exportLedger(String documentId, String owner) retrofit2.Call<String> retrofit2.Call<okhttp3.ResponseBody> filter(String context, String policyName, String filename, Boolean async, okhttp3.RequestBody bytes) retrofit2.Call<String> getContext(String name) retrofit2.Call<String> getContextEntries(String name, Integer offset, Integer limit) retrofit2.Call<String> getContexts(String owner, Integer offset, Integer limit) retrofit2.Call<okhttp3.ResponseBody> getDocument(String documentId, String owner) retrofit2.Call<String> getDocuments(String owner, Integer offset, Integer limit) retrofit2.Call<String> getDocumentStatus(String documentId, String owner) retrofit2.Call<LegalHoldResponse> retrofit2.Call<List<LegalHoldResponse>> retrofit2.Call<String> retrofit2.Call<String> getLedgerEntry(String documentId, String owner) retrofit2.Call<GetListsResponse> retrofit2.Call<String> getPolicies(String owner, Integer offset, Integer limit) retrofit2.Call<String> retrofit2.Call<String> getPolicyDiff(String policyName, int from, int to, String owner) retrofit2.Call<String> getPolicyVersion(String policyName, int revision, String owner) retrofit2.Call<List<PolicyVersionSummary>> getPolicyVersions(String policyName, String owner, Integer offset, Integer limit) retrofit2.Call<String> getRedactLists(String owner) retrofit2.Call<StatusResponse> health()retrofit2.Call<String> importContextEntries(String name, String onConflict, String owner, String json) retrofit2.Call<String> isLedgerValid(String documentId, String owner) retrofit2.Call<String> reidentify(String owner, ReidentifyRequest request) retrofit2.Call<PolicyRollbackResponse> rollbackPolicy(String policyName, int revision, String owner) retrofit2.Call<GenericResponse> retrofit2.Call<Void> savePolicy(String name, String owner, String json) retrofit2.Call<String> retrofit2.Call<StatusResponse> status()retrofit2.Call<GenericResponse> updateContext(String name, Boolean entityTypeDisambiguation, Boolean ledger) retrofit2.Call<GenericResponse> updateRedactList(String owner, String json)
-
Method Details
-
filter
-
filter
@Streaming @Headers({"Accept: application/zip","Content-Type: application/pdf"}) @POST("/api/filter") retrofit2.Call<okhttp3.ResponseBody> filter(@Query("c") String context, @Query("p") String policyName, @Query("filename") String filename, @Query("async") Boolean async, @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("p") String policyName, @Query("filename") String filename, @Body String text) -
compilePolicy
-
reidentify
@POST("/api/reidentify") retrofit2.Call<String> reidentify(@Query("owner") String owner, @Body ReidentifyRequest request) -
health
-
status
-
signingKey
-
getPolicies
-
getPolicy
-
savePolicy
-
deletePolicy
-
getPolicyVersions
-
getPolicyVersion
-
getPolicyDiff
-
rollbackPolicy
@Headers("Accept: application/json") @POST("/api/policies/{policyName}/rollback") retrofit2.Call<PolicyRollbackResponse> rollbackPolicy(@Path("policyName") String policyName, @Query("revision") int revision, @Query("owner") String owner) -
getContexts
-
createContext
@POST("/api/contexts") retrofit2.Call<GenericResponse> createContext(@Query("name") String name, @Query("entity_type_disambiguation") Boolean entityTypeDisambiguation, @Query("ledger") Boolean ledger) -
getContext
-
updateContext
@PUT("/api/contexts/{name}") retrofit2.Call<GenericResponse> updateContext(@Path("name") String name, @Query("entity_type_disambiguation") Boolean entityTypeDisambiguation, @Query("ledger") Boolean ledger) -
deleteContext
@DELETE("/api/contexts/{name}") retrofit2.Call<GenericResponse> deleteContext(@Path("name") String name) -
getContextEntries
-
deleteContextEntries
@DELETE("/api/contexts/{name}/entries") retrofit2.Call<GenericResponse> deleteContextEntries(@Path("name") String name) -
exportContextEntries
-
importContextEntries
-
deleteContextEntry
@DELETE("/api/contexts/{name}/entries/{entryId}") retrofit2.Call<GenericResponse> deleteContextEntry(@Path("name") String name, @Path("entryId") String entryId) -
getDocuments
-
getDocument
-
deleteDocument
-
getDocumentStatus
-
getHolds
@Headers("Accept: application/json") @GET("/api/holds") retrofit2.Call<List<LegalHoldResponse>> getHolds(@Query("owner") String owner, @Query("offset") Integer offset, @Query("limit") Integer limit) -
createHold
@Headers({"Accept: application/json","Content-Type: application/json"}) @POST("/api/holds") retrofit2.Call<LegalHoldResponse> createHold(@Query("owner") String owner, @Body LegalHoldRequest request) -
getHold
@Headers("Accept: application/json") @GET("/api/holds/{reference}") retrofit2.Call<LegalHoldResponse> getHold(@Path("reference") String reference, @Query("owner") String owner) -
deleteHold
-
getLedger
-
getLedgerEntry
-
exportLedger
-
isLedgerValid
-
getLists
-
saveList
-
deleteList
-
getList
@Headers("Accept: application/json") @GET("/api/lists/{name}") retrofit2.Call<GetListsResponse> getList(@Path("name") String name, @Query("owner") String owner) -
getRedactLists
-
createRedactList
@Headers("Content-Type: application/json") @POST("/api/redact-lists") retrofit2.Call<GenericResponse> createRedactList(@Query("owner") String owner, @Body String json) -
updateRedactList
@Headers("Content-Type: application/json") @PUT("/api/redact-lists") retrofit2.Call<GenericResponse> updateRedactList(@Query("owner") String owner, @Body String json)
-