Commit cecd3b65 authored by tobinski's avatar tobinski
Browse files

Update version of the ap1

parent 4092a21a
Pipeline #3439 passed with stage
in 2 minutes and 48 seconds
......@@ -43,7 +43,7 @@ app.use(KafkaCache.middleware);
* K8 needs to get this status. Otherwise loadbalancing is not possible
*/
app.get('/', HealthcheckController.healthy);
app.get('/v1/', HealthcheckController.healthy);
app.get('/v1-1/', HealthcheckController.healthy);
/**
* first connect to kafka
......@@ -108,22 +108,22 @@ kafka.init().then(async () => {
/**
* API to match a given node with all nodes with uri in Elastic search
*/
app.get('/v1/similarto/:node(*)', [...Validator.apiMatch(), ApiController.checkEncoding, kafkaMiddleware, ApiController.match, ApiController.queryKafka]);
app.get('/v1-1/similarto/:node(*)', [...Validator.apiMatch(), ApiController.checkEncoding, kafkaMiddleware, ApiController.match, ApiController.queryKafka]);
/**
* API to fetch all edges and nodes interconnected with a given node from neo4j
*/
app.get('/v1/sameas/:node(*)', [...Validator.apiConcordance(), ApiController.checkEncoding, kafkaMiddleware, ApiController.concordance, ApiController.queryKafka]);
app.get('/v1-1/sameas/:node(*)', [...Validator.apiConcordance(), ApiController.checkEncoding, kafkaMiddleware, ApiController.concordance, ApiController.queryKafka]);
/**
* API to get metadata about a given node
*/
app.get('/v1/metadata/:node(*)', [...Validator.apiMetadata(), ApiController.checkEncoding, kafkaMiddleware, ApiController.metadata, ApiController.queryKafka]);
app.get('/v1-1/metadata/:node(*)', [...Validator.apiMetadata(), ApiController.checkEncoding, kafkaMiddleware, ApiController.metadata, ApiController.queryKafka]);
/**
* API to get all information about a given node
*/
app.get('/v1/all/:node(*)', [...Validator.apiAll(), ApiController.checkEncoding, kafkaMiddleware, ApiController.all, ApiController.queryKafka]);
app.get('/v1-1/all/:node(*)', [...Validator.apiAll(), ApiController.checkEncoding, kafkaMiddleware, ApiController.all, ApiController.queryKafka]);
/**
* General error handling
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment