Search in sources :

Example 1 with SchemaString

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));
}
Also used : SchemaString(com.hortonworks.registries.schemaregistry.webservice.ConfluentSchemaRegistryCompatibleResource.SchemaString) WebTarget(javax.ws.rs.client.WebTarget)

Aggregations

SchemaString (com.hortonworks.registries.schemaregistry.webservice.ConfluentSchemaRegistryCompatibleResource.SchemaString)1 WebTarget (javax.ws.rs.client.WebTarget)1