Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-haz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-haz
Commits
b04ff291
Commit
b04ff291
authored
1 year ago
by
Powers, Peter M.
Browse files
Options
Downloads
Patches
Plain Diff
updated disagg swagger schema
parent
e4cd86b2
No related branches found
No related tags found
2 merge requests
!755
Production Release | nshmp-haz
,
!753
Update for CONUS V3 model runs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/gov/usgs/earthquake/nshmp/www/hazard/DisaggController.java
+4
-5
4 additions, 5 deletions
...ov/usgs/earthquake/nshmp/www/hazard/DisaggController.java
with
4 additions
and
5 deletions
src/main/java/gov/usgs/earthquake/nshmp/www/hazard/DisaggController.java
+
4
−
5
View file @
b04ff291
...
@@ -15,7 +15,6 @@ import gov.usgs.earthquake.nshmp.www.hazard.DisaggService.RequestIml;
...
@@ -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.RequestRp
;
import
gov.usgs.earthquake.nshmp.www.hazard.DisaggService.Response
;
import
gov.usgs.earthquake.nshmp.www.hazard.DisaggService.Response
;
import
gov.usgs.earthquake.nshmp.www.hazard.HazardService.Metadata
;
import
gov.usgs.earthquake.nshmp.www.hazard.HazardService.Metadata
;
import
io.micronaut.core.annotation.Nullable
;
import
io.micronaut.core.annotation.Nullable
;
import
io.micronaut.http.HttpRequest
;
import
io.micronaut.http.HttpRequest
;
import
io.micronaut.http.HttpResponse
;
import
io.micronaut.http.HttpResponse
;
...
@@ -102,10 +101,10 @@ public class DisaggController {
...
@@ -102,10 +101,10 @@ public class DisaggController {
@PathVariable
double
latitude
,
@PathVariable
double
latitude
,
@Schema
(
@Schema
(
minimum
=
"150"
,
minimum
=
"150"
,
maximum
=
"
30
00"
)
@PathVariable
double
vs30
,
maximum
=
"
15
00"
)
@PathVariable
double
vs30
,
@Schema
(
@Schema
(
minimum
=
"
1
50"
,
minimum
=
"50"
,
maximum
=
"
3
000"
)
@PathVariable
double
returnPeriod
,
maximum
=
"
10
000"
)
@PathVariable
double
returnPeriod
,
@QueryValue
@Nullable
Set
<
Imt
>
imt
,
@QueryValue
@Nullable
Set
<
Imt
>
imt
,
@QueryValue
@Nullable
Set
<
DisaggDataType
>
out
)
{
@QueryValue
@Nullable
Set
<
DisaggDataType
>
out
)
{
try
{
try
{
...
@@ -149,7 +148,7 @@ public class DisaggController {
...
@@ -149,7 +148,7 @@ public class DisaggController {
minimum
=
"150"
,
minimum
=
"150"
,
maximum
=
"3000"
)
@PathVariable
double
vs30
,
maximum
=
"3000"
)
@PathVariable
double
vs30
,
@Schema
(
@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
)
{
@QueryValue
@Nullable
Set
<
DisaggDataType
>
out
)
{
try
{
try
{
Map
<
Imt
,
Double
>
imtImlMap
=
http
.
getParameters
().
asMap
(
Imt
.
class
,
Double
.
class
);
Map
<
Imt
,
Double
>
imtImlMap
=
http
.
getParameters
().
asMap
(
Imt
.
class
,
Double
.
class
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment