Search in sources :

Example 6 with Config

use of io.confluent.kafka.schemaregistry.client.rest.entities.Config in project schema-registry by confluentinc.

the class RestService method deleteConfig.

public Config deleteConfig(Map<String, String> requestProperties, String subject) throws IOException, RestClientException {
    String path = subject != null ? UriBuilder.fromPath("/config/{subject}").build(subject).toString() : "/config";
    Config response = httpRequest(path, "DELETE", null, requestProperties, DELETE_SUBJECT_CONFIG_RESPONSE_TYPE);
    return response;
}
Also used : Config(io.confluent.kafka.schemaregistry.client.rest.entities.Config) SchemaRegistryClientConfig(io.confluent.kafka.schemaregistry.client.SchemaRegistryClientConfig) SchemaString(io.confluent.kafka.schemaregistry.client.rest.entities.SchemaString)

Aggregations

Config (io.confluent.kafka.schemaregistry.client.rest.entities.Config)6 CompatibilityLevel (io.confluent.kafka.schemaregistry.CompatibilityLevel)4 SchemaRegistryStoreException (io.confluent.kafka.schemaregistry.exceptions.SchemaRegistryStoreException)4 Operation (io.swagger.v3.oas.annotations.Operation)4 SchemaRegistryClientConfig (io.confluent.kafka.schemaregistry.client.SchemaRegistryClientConfig)2 SchemaString (io.confluent.kafka.schemaregistry.client.rest.entities.SchemaString)2 OperationNotPermittedException (io.confluent.kafka.schemaregistry.exceptions.OperationNotPermittedException)2 SchemaRegistryRequestForwardingException (io.confluent.kafka.schemaregistry.exceptions.SchemaRegistryRequestForwardingException)2 UnknownLeaderException (io.confluent.kafka.schemaregistry.exceptions.UnknownLeaderException)2 DELETE (javax.ws.rs.DELETE)2 GET (javax.ws.rs.GET)2 Path (javax.ws.rs.Path)2