DataPolicyApi

interface DataPolicyApi

Functions

Link copied to clipboard
@POST(value = "dp/api/v1/policies")
abstract fun create(@Header(value = "dataos-correlation-id") correlationId: String = UUID.randomUUID().toString(), @Body request: DataPolicy): Call<DataPolicy>
Link copied to clipboard
@DELETE(value = "dp/api/v1/policies/id")
abstract fun delete(@Path(value = "id") id: String, @Header(value = "dataos-correlation-id") correlationId: String = UUID.randomUUID().toString()): Call<List<DataPolicy>>
Link copied to clipboard
@GET(value = "dp/api/v1/policies/id")
abstract fun get(@Path(value = "id") id: String, @Header(value = "dataos-correlation-id") correlationId: String = UUID.randomUUID().toString()): Call<List<DataPolicy>>
Link copied to clipboard
@POST(value = "dp/api/v1/policies/decision")
abstract fun getDecision(@Header(value = "dataos-correlation-id") correlationId: String = UUID.randomUUID().toString(), @Body request: Dataset): Call<Decision>
Link copied to clipboard
@GET(value = "dp/api/v1/policies/decision/{depot}/{collection}/{dataset}")
abstract fun getDecisionWithoutContext(@Path(value = "depot") depot: String, @Path(value = "collection") collection: String, @Path(value = "dataset") dataset: String, @Header(value = "dataos-correlation-id") correlationId: String = UUID.randomUUID().toString()): Call<Decision>
Link copied to clipboard
@GET(value = "dp/api/v1/policies")
abstract fun list(@Header(value = "dataos-correlation-id") correlationId: String = UUID.randomUUID().toString()): Call<List<DataPolicy>>
Link copied to clipboard
@PUT(value = "dp/api/v1/policies/id")
abstract fun update(@Path(value = "id") id: String, @Header(value = "dataos-correlation-id") correlationId: String = UUID.randomUUID().toString()): Call<List<DataPolicy>>