Server backbone service based on a given stack components does two tasks
- Stack Aggregation
- Recommendation
Based on the contents of a given payload, it tries to aggregate the data from the Graph. It then persists the data in the Database and returns a response.
Based on the contents of a given payload, it calls Kronos service and gets the recommendation in terms of
- Outliers
- Alternate Components
- Companion Components
It then persists the above data in the Database and returns a response.
-
./runtests.sh
-
curl localhost:<SERVICE_PORT>/api/v1/readiness should return
{}
with status 200
{
"external_request_id": "req-id",
"result": [{
"summary": [],
"details": [{
"ecosystem": "maven",
"description": "Exposes an HTTP API using Vert.x",
"_resolved": [{
"package": "io.vertx:vertx-web",
"version": "3.4.2"
}, {
"package": "io.vertx:vertx-core",
"version": "3.4.2"
}],
"manifest_file_path": "/home/JohnDoe",
"manifest_file": "pom.xml",
"declared_licenses": ["Apache License, Version 2.0"],
"name": "Vert.x - HTTP",
"dependencies": ["io.vertx:vertx-web 3.4.2", "io.vertx:vertx-core 3.4.2"],
"version": "1.0.0-SNAPSHOT",
"devel_dependencies": ["com.jayway.restassured:rest-assured 2.9.0", "io.openshift:openshift-test-utils 2", "org.assertj:assertj-core 3.6.2", "junit:junit 4.12", "io.vertx:vertx-unit 3.4.2", "io.vertx:vertx-web-client 3.4.2", "com.jayway.awaitility:awaitility 1.7.0"],
"homepage": null
}],
"status": "success"
}]
}
API Endpoint api/v1/recommender
{
"external_request_id": "req-id",
"recommendation": "success"
}
API Endpoint api/v1/stack_aggregator
{
"external_request_id": "req-id",
"stack_aggregator": "success"
}