Skip to content
Snippets Groups Projects
Commit 667a7984 authored by Pavel Bachyla's avatar Pavel Bachyla
Browse files

Update PUT API path

parent bc0e6895
No related branches found
No related tags found
1 merge request!60Indexer to read from Schema Service as well as Storage Schema
......@@ -42,7 +42,7 @@ public class SchemaServiceClient {
}
public void create(SchemaModel schema) {
String uri = buildSchemaUri(schema.getSchemaInfo().getSchemaIdentity().getId());
String uri = buildSchemaUri();
LOGGER.log(Level.INFO, "Creating the schema={0}", schema);
template.put(uri, schema);
LOGGER.log(Level.INFO, "Finished creating the schema={0}", schema);
......@@ -60,4 +60,10 @@ public class SchemaServiceClient {
.buildAndExpand(id).toUriString();
}
private String buildSchemaUri() {
return UriComponentsBuilder.fromHttpUrl(SCHEMA_BASE_URL)
.path("/v1/schema/")
.build().toUriString();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment