Skip to content
Snippets Groups Projects
Commit 20686402 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

clean

parent ec21c88f
No related branches found
No related tags found
1 merge request!806AWS Lambda
awsVersion = 2.29.52
awsSsmVersion = 2.29.52
githooksVersion = 1.2.0
gitVersionVersion = 0.15.0
grgitVersion = 4.1.1
......
......@@ -12,7 +12,7 @@ dependencies {
implementation "org.eclipse.jgit:org.eclipse.jgit:${jgitVersion}"
// AWS
implementation "software.amazon.awssdk:ssm:${awsVersion}"
implementation "software.amazon.awssdk:ssm:${awsSsmVersion}"
// Micronaut
annotationProcessor("io.micronaut:micronaut-http-validation")
......
......@@ -64,16 +64,14 @@ public final class HazardService {
public static HttpResponse<String> getMetadata(HttpRequest<?> request) {
var url = request.getUri().getPath();
var model = ServletUtil.model();
var usage = new Metadata(ServletUtil.model());
var body = ResponseBody.usage()
.name(NAME)
.url(url)
.metadata(new ResponseMetadata(HazVersion.appVersions(ServletUtil.model().root())))
.request(url)
.response(new Metadata(model))
.response(usage)
.build();
var json = ServletUtil.GSON2.toJson(body);
return HttpResponse.ok(json);
}
......@@ -138,16 +136,19 @@ public final class HazardService {
Metadata(HazardModel model) {
this.model = new SourceModel(model);
longitude = new DoubleParameter(
"Longitude",
"°",
model.bounds().min.longitude,
model.bounds().max.longitude);
latitude = new DoubleParameter(
"Latitude",
"°",
model.bounds().min.latitude,
model.bounds().max.latitude);
vs30 = new DoubleParameter(
"Vs30",
"m/s",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment