Skip to content
Snippets Groups Projects
Commit 225e13f4 authored by Powers, Peter M.'s avatar Powers, Peter M.
Browse files

updated disagg swagger schema

parent 30e559a4
No related branches found
No related tags found
2 merge requests!755Production Release | nshmp-haz,!753Update for CONUS V3 model runs
......@@ -15,7 +15,6 @@ import gov.usgs.earthquake.nshmp.www.hazard.DisaggService.RequestIml;
import gov.usgs.earthquake.nshmp.www.hazard.DisaggService.RequestRp;
import gov.usgs.earthquake.nshmp.www.hazard.DisaggService.Response;
import gov.usgs.earthquake.nshmp.www.hazard.HazardService.Metadata;
import io.micronaut.core.annotation.Nullable;
import io.micronaut.http.HttpRequest;
import io.micronaut.http.HttpResponse;
......@@ -102,10 +101,10 @@ public class DisaggController {
@PathVariable double latitude,
@Schema(
minimum = "150",
maximum = "3000") @PathVariable double vs30,
maximum = "1500") @PathVariable double vs30,
@Schema(
minimum = "150",
maximum = "3000") @PathVariable double returnPeriod,
minimum = "50",
maximum = "10000") @PathVariable double returnPeriod,
@QueryValue @Nullable Set<Imt> imt,
@QueryValue @Nullable Set<DisaggDataType> out) {
try {
......@@ -149,7 +148,7 @@ public class DisaggController {
minimum = "150",
maximum = "3000") @PathVariable double vs30,
@Schema(
example = "{\"PGA\": 0, \"SA0P2\": 0, \"SA1P0\": 0, \"SA2P0\": 0}") @QueryValue @Nullable Map<Imt, Double> imls,
example = "{\"PGA\": 0.1, \"SA0P2\": 0.2, \"SA1P0\": 0.05, \"SA2P0\": 0.01}") @QueryValue @Nullable Map<Imt, Double> imls,
@QueryValue @Nullable Set<DisaggDataType> out) {
try {
Map<Imt, Double> imtImlMap = http.getParameters().asMap(Imt.class, Double.class);
......
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