Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-apps
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
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-apps
Merge requests
!566
add response type
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
add response type
ghsc/users/bclayton/nshmp/nshmp-apps:swagger
into
main
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Clayton, Brandon Scott
requested to merge
ghsc/users/bclayton/nshmp/nshmp-apps:swagger
into
main
1 month ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Add response type to swagger check
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
8275f179
1 commit,
1 month ago
1 file
+
3
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
projects/nshmp-ws/src/app/swagger/app.component.ts
+
3
−
1
Options
@@ -52,7 +52,9 @@ export class AppComponent implements OnInit {
@@ -52,7 +52,9 @@ export class AppComponent implements OnInit {
// Check swagger endpoint first
// Check swagger endpoint first
this
.
httpClient
this
.
httpClient
.
get
(
url
)
.
get
(
url
,
{
responseType
:
'
text
'
,
})
.
pipe
(
.
pipe
(
catchError
((
error
:
Error
)
=>
{
catchError
((
error
:
Error
)
=>
{
this
.
spinnerRef
.
close
();
this
.
spinnerRef
.
close
();
Loading