Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-ws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-ws
Commits
c31b82c3
Commit
c31b82c3
authored
11 months ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Plain Diff
Merge branch 'micronaut' into 'main'
Swagger See merge request
!224
parents
b306b851
c99c22f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!224
Swagger
Pipeline
#411454
passed
11 months ago
Stage: build
Stage: trigger
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gradle.properties
+1
-1
1 addition, 1 deletion
gradle.properties
src/main/java/gov/usgs/earthquake/nshmp/www/gmm/GmmController.java
+12
-11
12 additions, 11 deletions
...java/gov/usgs/earthquake/nshmp/www/gmm/GmmController.java
with
13 additions
and
12 deletions
gradle.properties
+
1
−
1
View file @
c31b82c3
...
@@ -14,4 +14,4 @@ nshmpUtilsJavaVersion = 0.4.0
...
@@ -14,4 +14,4 @@ nshmpUtilsJavaVersion = 0.4.0
shadowVersion
=
7.1.2
shadowVersion
=
7.1.2
spotbugsVersion
=
4.7.0
spotbugsVersion
=
4.7.0
spotlessVersion
=
6.0.4
spotlessVersion
=
6.0.4
swaggerVersion
=
2.
1.7
swaggerVersion
=
2.
2.21
This diff is collapsed.
Click to expand it.
src/main/java/gov/usgs/earthquake/nshmp/www/gmm/GmmController.java
+
12
−
11
View file @
c31b82c3
...
@@ -239,12 +239,12 @@ class GmmController {
...
@@ -239,12 +239,12 @@ class GmmController {
defaultValue
=
"0.001"
,
defaultValue
=
"0.001"
,
minimum
=
"0"
,
minimum
=
"0"
,
maximum
=
"1000"
,
maximum
=
"1000"
,
exclusiveMinimum
=
true
)
@QueryValue
Optional
<
Double
>
rMin
,
exclusiveMinimum
=
true
)
@QueryValue
@Nullable
Double
rMin
,
@Schema
(
@Schema
(
defaultValue
=
"100"
,
defaultValue
=
"100"
,
minimum
=
"0"
,
minimum
=
"0"
,
maximum
=
"1000"
,
maximum
=
"1000"
,
exclusiveMinimum
=
true
)
@QueryValue
Optional
<
Double
>
rMax
,
exclusiveMinimum
=
true
)
@QueryValue
@Nullable
Double
rMax
,
@Schema
(
@Schema
(
defaultValue
=
"6.5"
,
defaultValue
=
"6.5"
,
minimum
=
"-2"
,
minimum
=
"-2"
,
...
@@ -305,7 +305,7 @@ class GmmController {
...
@@ -305,7 +305,7 @@ class GmmController {
}
}
GmmInput
in
=
ServiceUtil
.
readGmmInput
(
http
);
GmmInput
in
=
ServiceUtil
.
readGmmInput
(
http
);
Distance
.
Request
request
=
new
Distance
.
Request
(
Distance
.
Request
request
=
new
Distance
.
Request
(
http
,
id
,
gmms
,
in
,
imt
,
rMin
,
rMax
);
http
,
id
,
gmms
,
in
,
imt
,
Optional
.
ofNullable
(
rMin
)
,
Optional
.
ofNullable
(
rMax
)
)
;
return
Distance
.
process
(
request
);
return
Distance
.
process
(
request
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
Utils
.
handleError
(
e
,
id
.
name
,
http
.
getUri
().
getPath
());
return
Utils
.
handleError
(
e
,
id
.
name
,
http
.
getUri
().
getPath
());
...
@@ -362,12 +362,12 @@ class GmmController {
...
@@ -362,12 +362,12 @@ class GmmController {
defaultValue
=
"-100"
,
defaultValue
=
"-100"
,
minimum
=
"-1000"
,
minimum
=
"-1000"
,
maximum
=
"1000"
,
maximum
=
"1000"
,
exclusiveMinimum
=
true
)
@QueryValue
Optional
<
Double
>
rMin
,
exclusiveMinimum
=
true
)
@QueryValue
@Nullable
Double
rMin
,
@Schema
(
@Schema
(
defaultValue
=
"100"
,
defaultValue
=
"100"
,
minimum
=
"-1000"
,
minimum
=
"-1000"
,
maximum
=
"1000"
,
maximum
=
"1000"
,
exclusiveMinimum
=
true
)
@QueryValue
Optional
<
Double
>
rMax
,
exclusiveMinimum
=
true
)
@QueryValue
@Nullable
Double
rMax
,
@Schema
(
@Schema
(
defaultValue
=
"6.5"
,
defaultValue
=
"6.5"
,
minimum
=
"-2"
,
minimum
=
"-2"
,
...
@@ -417,7 +417,7 @@ class GmmController {
...
@@ -417,7 +417,7 @@ class GmmController {
}
}
GmmInput
in
=
ServiceUtil
.
readGmmInput
(
http
);
GmmInput
in
=
ServiceUtil
.
readGmmInput
(
http
);
Distance
.
Request
request
=
new
Distance
.
Request
(
Distance
.
Request
request
=
new
Distance
.
Request
(
http
,
id
,
gmms
,
in
,
imt
,
rMin
,
rMax
);
http
,
id
,
gmms
,
in
,
imt
,
Optional
.
ofNullable
(
rMin
)
,
Optional
.
ofNullable
(
rMax
)
)
;
return
Distance
.
process
(
request
);
return
Distance
.
process
(
request
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
Utils
.
handleError
(
e
,
id
.
name
,
http
.
getUri
().
getPath
());
return
Utils
.
handleError
(
e
,
id
.
name
,
http
.
getUri
().
getPath
());
...
@@ -474,22 +474,22 @@ class GmmController {
...
@@ -474,22 +474,22 @@ class GmmController {
defaultValue
=
"5"
,
defaultValue
=
"5"
,
minimum
=
"-2"
,
minimum
=
"-2"
,
maximum
=
"9.7"
,
maximum
=
"9.7"
,
exclusiveMinimum
=
true
)
@QueryValue
Optional
<
Double
>
mMin
,
exclusiveMinimum
=
true
)
@QueryValue
@Nullable
Double
mMin
,
@Schema
(
@Schema
(
defaultValue
=
"8"
,
defaultValue
=
"8"
,
minimum
=
"-2"
,
minimum
=
"-2"
,
maximum
=
"9.7"
,
maximum
=
"9.7"
,
exclusiveMinimum
=
true
)
@QueryValue
Optional
<
Double
>
mMax
,
exclusiveMinimum
=
true
)
@QueryValue
@Nullable
Double
mMax
,
@Schema
(
@Schema
(
defaultValue
=
"0.1"
,
defaultValue
=
"0.1"
,
minimum
=
"0"
,
minimum
=
"0"
,
maximum
=
"1"
,
maximum
=
"1"
,
exclusiveMinimum
=
true
)
@QueryValue
Optional
<
Double
>
step
,
exclusiveMinimum
=
true
)
@QueryValue
@Nullable
Double
step
,
@Schema
(
@Schema
(
defaultValue
=
"10"
,
defaultValue
=
"10"
,
minimum
=
"0"
,
minimum
=
"0"
,
maximum
=
"1000"
,
maximum
=
"1000"
,
exclusiveMinimum
=
true
)
@QueryValue
Optional
<
Double
>
distance
,
exclusiveMinimum
=
true
)
@QueryValue
@Nullable
Double
distance
,
@Schema
(
@Schema
(
defaultValue
=
"6.5"
,
defaultValue
=
"6.5"
,
minimum
=
"-2"
,
minimum
=
"-2"
,
...
@@ -538,7 +538,8 @@ class GmmController {
...
@@ -538,7 +538,8 @@ class GmmController {
}
}
GmmInput
in
=
ServiceUtil
.
readGmmInput
(
http
);
GmmInput
in
=
ServiceUtil
.
readGmmInput
(
http
);
Magnitude
.
Request
gmmRequest
=
new
Magnitude
.
Request
(
Magnitude
.
Request
gmmRequest
=
new
Magnitude
.
Request
(
http
,
id
,
gmms
,
in
,
imt
,
mMin
,
mMax
,
step
,
distance
);
http
,
id
,
gmms
,
in
,
imt
,
Optional
.
ofNullable
(
mMin
),
Optional
.
ofNullable
(
mMax
),
Optional
.
ofNullable
(
step
),
Optional
.
ofNullable
(
distance
));
return
Magnitude
.
process
(
gmmRequest
);
return
Magnitude
.
process
(
gmmRequest
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
Utils
.
handleError
(
e
,
id
.
name
,
http
.
getUri
().
getPath
());
return
Utils
.
handleError
(
e
,
id
.
name
,
http
.
getUri
().
getPath
());
...
...
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