use of com.hortonworks.registries.schemaregistry.webservice.ConfluentSchemaRegistryCompatibleResource.SchemaString in project registry by hortonworks.
the class ConfluentRegistryCompatibleResourceTest method postSubjectSchema.
private Response postSubjectSchema(String subjectName, String schemaText) throws IOException {
WebTarget subjectsTarget = rootTarget.path("/subjects/" + subjectName + "/versions");
SchemaString schemaString = new SchemaString();
schemaString.setSchema(schemaText);
return subjectsTarget.request(MediaType.APPLICATION_JSON_TYPE).post(Entity.json(schemaString));
}
Aggregations